This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
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

Win a copy of Head First Android this week in the Android forum!
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
jQuery in Action, 3rd edition