dcsimg

How can I set focus in a JTextField?

Scott Stanchfield

You need to call requestFocus() on the JTextField.