Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

to clear a value in JPasswordField  RSS feed

 
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
Marshal
Posts: 55715
163
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Don't you mean this?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!