Anyone knows how to set focus on specific JTextComponents such as JTextField... after screen loads ?
posted 15 years ago
Try yourTextField.requestFocus(); It works for me, but you have to put this line after yourFrame.setVisible(true). I don't know if it's a good idea to put any code after yourFrame.setVisible(true). Good lucks!