File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes I/O and Streams and the fly likes which class to use for password with no echo(not Console class) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » I/O and Streams
Bookmark "which class to use for password with no echo(not Console class)" Watch "which class to use for password with no echo(not Console class)" New topic
Author

which class to use for password with no echo(not Console class)

Ian Su
Greenhorn

Joined: Nov 18, 2010
Posts: 25
Which class to use for password with no echo.Except Console class,guide me some classes.Thank you very much
Daniel Marti
Ranch Hand

Joined: Jun 08, 2011
Posts: 37
There is no class at the moment that allows you to not show/mask input in console. That is something that has been asked for a long time though...
Anyway a google search for "java no echo" will present you with a workaround: Password Field Workaround
Ian Su
Greenhorn

Joined: Nov 18, 2010
Posts: 25
Daniel Marti wrote:There is no class at the moment that allows you to not show/mask input in console. That is something that has been asked for a long time though...
Anyway a google search for "java no echo" will present you with a workaround: Password Field Workaround


Thank you Mr Marti.
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

JPasswordField does that.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: which class to use for password with no echo(not Console class)