Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

setting characters for password textfield

Status
Not open for further replies.

DJSmith

Programmer
Aug 14, 2000
82
GB
i'm using swing and i don't know how to make a * appear instead of the letter typed. I know using the AWT it's you would use setEchoCharacter('*'); but it is different for swing. Does anyone know???? [sig][/sig]
 
Okay well i've just found out the answer. Just incase anyone else was interested here is the answer. The textField in swing does not double as a password field as the AWT textField does. Within swing there is an object know as JPasswordField. Which works the same as a textfield but is purely dedicated to passwords [sig][/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top