File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Want to show **** in input dialog." Watch "Want to show **** in input dialog." New topic
Author

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)
brian


My Java Freeware:<br />MACCC - <a href="http://maccc.pipasoft.com" target="_blank" rel="nofollow">http://maccc.pipasoft.com</a><br />Nator - <a href="http://nator.pipasoft.com" target="_blank" rel="nofollow">http://nator.pipasoft.com</a>
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Want to show **** in input dialog.