This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to get input without echo

 
Albert Kam
Greenhorn
Posts: 6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi dudes,
i need some help here. i want to get some input from users in console mode (not using gui), but i dont want to echo the chars they type. anybody knows how to do that ?
thanks ...
 
Cindy Glass
"The Hood"
Sheriff
Posts: 8521
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you mean that you want to block out the letters that they type, like when you enter a password?
In a console you would not get the input from System.in until they pressed enter, so you would NOT get a chance to mess with it at all.
Consider a small JOptionPane using the showInputDialog and have the input go into a JPasswordField component.
 
Albert Kam
Greenhorn
Posts: 6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks Cindy !
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic