JPasswordield : Java Glossary


single line display of text on the screen similar to a JTextField especially for keying passwords. Instead of presenting the result as a String JPasswordField gives you a char[] which can be erased after use. With a String result, the password could lie around in RAM (Random Access Memory) waiting to be GCed and potentially scavenged by someone snooping on the swapfile. By default it echos * so someone watching over the keyer’s shoulder could not read the password. Further, someone snooping on the screen

Learning More

Oracle’s Javadoc on JPasswordField class : available:

This page is posted
on the web at:

Optional Replicator mirror
on local hard disk J:

Please the feedback from other visitors, or your own feedback about the site.
Contact Roedy. Please feel free to link to this page without explicit permission.

Your face IP:[]
You are visitor number