wood burning stoves
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 Building Microservices this week in the Design 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: 20083

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 help......love you,,,,thank you again
It is sorta covered in the JavaRanch Style Guide.
subject: Password Input Box
jQuery in Action, 3rd edition