This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes Password Input Box Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Password Input Box" Watch "Password Input Box" New topic

Password Input Box

Mamu Jan
Ranch Hand

Joined: Sep 21, 2005
Posts: 45

Is there anything like a Password InputBox. The JOptionPane.showInputDialogBox() provides a text field but I need a password field in the input dialog box !!??

[ November 11, 2005: Message edited by: Mamu Jan ]

There is no patch for ignorance...
Paul Bourdeaux
Ranch Hand

Joined: May 24, 2004
Posts: 783
Will JPasswordField work?

“Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.” - Rich Cook
Mamu Jan
Ranch Hand

Joined: Sep 21, 2005
Posts: 45
Let me rephrase my question. I need an input "dialoag box" containing a password field instead of a text field.
Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
Mamu Jan
Ranch Hand

Joined: Sep 21, 2005
Posts: 45
Originally posted by Michael Dunn:

Thanx Michael !! ur a life saver dude !
Rob Spoor

Joined: Oct 27, 2005
Posts: 19656

You can use the same technique for any other type of component, such as JLists, JTrees, JCheckBoxes, you name it.

How To Ask Questions How To Answer Questions
subhendu panda

Joined: Apr 25, 2012
Posts: 1
Thanks Michel for this grt you,,,,thank you again
I agree. Here's the link:
subject: Password Input Box
Similar Threads
how to disable autocomplete for password
Best way to create a combo-box (editable selectBox)?
Putting passwords into code
struts2-populating disabled input fields after validation
JOptionPane (showInputDialog())