File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Swing / AWT / SWT and the fly likes JOptionPane password input Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JOptionPane password input" Watch "JOptionPane password input" New topic

JOptionPane password input

Eric Crockett

Joined: Jan 24, 2005
Posts: 25
I want to be able to use JOptionPane (not a JPasswordField) to input a password. The only thing is, I want it to display an echo character(*s instead of characters). Does anyone know if this is possible or how to do it?
Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
what about a JPasswordField in a confirmDialog

Eric Crockett

Joined: Jan 24, 2005
Posts: 25
Thank You!!
I agree. Here's the link:
subject: JOptionPane password input
Similar Threads
JTextField InputVerifier
JOptionPane and JDialog
How to applty setMneomonic in Confirm Dialog of JOption Pane