I have a JPasswordField in a JDialog. The first time in the dialog it works fine. However, on subsequent entries, when tabbing to the JPasswordField, the cursor appears several characters into the field instead of at the beginning. Any suggestions?
Thanks.
Alexandru Popescu
Ranch Hand
Joined: Jul 12, 2004
Posts: 995
posted
0
Do you clean up the password text? Are you reusing the dialog?
Yes. It is being reused. Currently reset password with a setText( "" );
Alexandru Popescu
Ranch Hand
Joined: Jul 12, 2004
Posts: 995
posted
0
Can you paste the code? It is not clear what is happening. Have you tried to select the advance space in password text? Is it always the same? Isn't it another tab character?
-- ./pope [the_mindstorm]
Barry Brashear
Ranch Hand
Joined: Jun 05, 2001
Posts: 303
posted
0
The JPassword field is called mTLSupervisorEmpNumber. The code is :
mTLSupervisorEmpNumber.setText( "" );
Alexandru Popescu
Ranch Hand
Joined: Jul 12, 2004
Posts: 995
posted
0
lol Barry. I meant all the code involving at least the password text.