I have the following two lines in a program:
JPasswordField jpf = new JPasswordField(10);
JOptionPane.showMessageDialog(null , jpf , "Enter the Password" , JOptionPane.QUESTION_MESSAGE);
No matter what I try, I can't seem to get input focus without having to first click in the field.
Thanx one and all.