aspose file tools*
The moose likes Beginning Java and the fly likes password Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "password" Watch "password" New topic
Author

password

brian yuen
Greenhorn

Joined: Oct 20, 2003
Posts: 20
Can anyone tell me how to hide the information then I type
like

when i typing it, the screen will not display what typed..
chris czinder
Greenhorn

Joined: Oct 02, 2002
Posts: 28
Hey,
You might want to look at the Api, and checkout PasswordCallback. It has the ability to set it so the Password isn't echoed back. Look into it at
API.
Hope that helps
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24187
    
  34

Java doesn't offer that kind of control over the console interface, unfortunately. You're better off throwing up a GUI window; then it's easy to use, for example, javax.swing.JPasswordField.
I don't think the PasswordCallback suggestion will help you.


[Jess in Action][AskingGoodQuestions]
brian yuen
Greenhorn

Joined: Oct 20, 2003
Posts: 20
thanks guys , I found a web that can helps
http://java.sun.com/features/2002/09/pword_mask.html
brian yuen
Greenhorn

Joined: Oct 20, 2003
Posts: 20
thanks guys , I found a web that can helps
password
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: password