• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

to clear a value in JPasswordField

 
Gayani Kanchana
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
please try to use
jpasswordfield.text="";
 
Campbell Ritchie
Sheriff
Posts: 48652
56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Don't you mean this?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic