This week's book giveaway is in the Testing forum. We're giving away four copies of The Way of the Web Tester: A Beginner's Guide to Automating Tests and have Jonathan Rasmusson on-line! See this thread for details.
hi.. is there any body have idea abt ..this thing How to setEchoChar for JTextField.we can set the TextField for set TextField.setEchoChar('*') like that.How can we set for JTextField.
Thank you,<br />Sanju
posted 13 years ago
Hi Bindu, JTextField doesn't have a similar method like setEchoChar(). But javax.swing provides a component JPasswordField for passwords field. The default character displayed for whatever you type is '*'. If you want to change that, you can use setEchoChar(char c) method. So, use JPasswordField for password fields. Shashi