I make my game run without mouse so using pointer is not a choice. High Score menu will show when player lose.
this is my code
highScore=new MyTe
If you want your JTextField to be focused when your GUI shows up, you can use this:
JTextField
in = new JTextField(40); f.addWindowListener( new WindowAdapter() { public void windowOpened( WindowEvent e ){ in.requestFocus(); } });
Where f would be your JFrame and in is your JTextField.
f
JFrame
in