How to convert Password field in '*'
Hi folks!
In my GUI i have to hide password by '*'. How I can do it? I am using Swing and not sure which JTextField method should I use. I know in AWT i can say something like this
JTextField txpassword =new JTextField(10);
txpassword.setLocation(70,50);
txpassword.setSize(100,20);
txpassword.setFont(f);
//To hide password
txpassword.setEchoChar('*');
But what about Swing?
Thanks in advance

