Share this page 

Set the focus on a particuliar JTextFieldTag(s): Swing


SwingUtilities.invokeLater(new Runnable() {
    public void run() {
          myJTextField.requestFocus();
    }
});