JButton jBtRandomize = new JButton("Randomize");
jBtRandomize.setMnemonic('R');
jBtRandomize.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent ae) {
tm.randomize();
dlg.repaint();
}
});
JButton jBtOk = new JButton("Ok");
jBtOk.setMnemonic('O');