Re: Setting focus on a JTextField when a JOptionPane is displayed.
Wednesday, June 25, 2003 08:10 AM
Instead of using the static showXXXDialog method use a suitable JDialog CTOR. Then add a windowListener to it and in the windowOpened or windowActivated callback set the focus in the text field. Then show the JDialog instance.