• Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
Ian Su
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which class to use for password with no echo.Except Console class,guide me some classes.Thank you very much
 
Daniel Marti
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Sheriff
Posts: 21987
36
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JPasswordField does that.
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!