This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes Want to show **** in input dialog. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Want to show **** in input dialog." Watch "Want to show **** in input dialog." New topic

Want to show **** in input dialog.

Vikas Kumar Sahu
Ranch Hand

Joined: Dec 02, 2003
Posts: 59
I have seen a method showInputDialog(...) for getting input in jdialog
class, but I want that user input its data but show always * inplace
of typed character, like JPasswordField class , is there any method
in jdialog or any solution.
Brian Pipa
Ranch Hand

Joined: Sep 29, 2003
Posts: 299
Use a JDialog and add a JPasswordField to it. Read the Javadocs for JDialog about how to add your own components (at the top of the Javadoc)

My Java Freeware:<br />MACCC - <a href="" target="_blank" rel="nofollow"></a><br />Nator - <a href="" target="_blank" rel="nofollow"></a>
Don't get me started about those stupid light bulbs.
subject: Want to show **** in input dialog.
It's not a secret anymore!