Anybody know how to get a JOptionPane input dialog to use JPasswordField?

K

Knute Johnson

I would like to have a JOptionPane input dialog use a JPasswordField.
Anybody know how to make that happen?

Thanks,
 
K

Knute Johnson

hiwa said:
Use showMessageDialog() and give your custom object as its 'message'.

Thanks so very much. I can't believe that I didn't figure that one out
on my own. Oh well. Thanks.
 
Joined
Sep 30, 2006
Messages
1
Reaction score
0
How To Retrieve the password from JOptionPane

Hi
Iam using JpasswordField in JOptionPane.showMessageDialog() .OK. How can I retrieve the password from the message window . Thank You
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,902
Latest member
Elena68X5

Latest Threads

Top