Password field?

Is there and how do i recreate a input type = password html field that hides the inputed text with ******** in java. Html is not an option as this will be used in an applet fully enclosed. Thanx

You can use a JPasswordField. it works like this:


JPasswordField pass = new JPasswordField(10);
pass.setEchoChar('&');

It defaults to *'s, but setEchoChar() sets the character that you want displayed instead of the text!

Rock on. .Thank you so much!