Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Swing / AWT / SWT
Search Coderanch
Advance search
Google search
Register / Login
Win a copy of
OCP Oracle Certified Professional Java SE 21 Developer Study Guide: Exam 1Z0-830
this week in the
Programmer Certification
forum!
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Tim Cooke
Liutauras Vilda
Jeanne Boyarsky
paul wheaton
Sheriffs:
Ron McLeod
Devaka Cooray
Henry Wong
Saloon Keepers:
Tim Holloway
Stephan van Hulst
Carey Brown
Tim Moores
Mikalai Zaikin
Bartenders:
Frits Walraven
Forum:
Swing / AWT / SWT
to clear a value in JPasswordField
Gayani Kanchana
Greenhorn
Posts: 19
posted 17 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
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
posted 17 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
please try to use
jpasswordfield.text="";
Be Confident,be trusty,Count your age by friends not by years
Campbell Ritchie
Marshal
Posts: 79978
397
posted 17 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Don't you mean this?
JPasswordField pwf; . . . pwf.setText("");
Heroic work plunger man. Please allow me to introduce you to this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
which class to use for password with no echo(not Console class)
set the max length of a JTextField
Dynamic field collapse issue in Form
Password Circles
jPasswordField is not working please help..
More...