This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes to clear a value in JPasswordField Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "to clear a value in JPasswordField" Watch "to clear a value in JPasswordField" New topic
Author

to clear a value in JPasswordField

Gayani Kanchana
Greenhorn

Joined: Mar 27, 2007
Posts: 19
i need to clear the value of the jpasswordfield which user has entered after user presses OK button so that the same value entered wont be displayed again to the user next time he logs in.
please help me.

thanks
Md.Afzalur Rashid
Ranch Hand

Joined: Oct 29, 2002
Posts: 47
please try to use
jpasswordfield.text="";


Be Confident,be trusty,Count your age by friends not by years
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 37901
    
  22
Don't you mean this?
 
wood burning stoves
 
subject: to clear a value in JPasswordField
 
Similar Threads
Password Circles
set the max length of a JTextField
jPasswordField is not working please help..
Dynamic field collapse issue in Form
which class to use for password with no echo(not Console class)