Hi, If u insist in using a Text field then u can use TextField tf = new TextField(); tf.setEchoChar('*'); here u can set the echo character(maybe *, or any char) But note that this works only for TextField and not JTextField. So if u wanna use juz the awt classes, use TextField . If u wanna use swing calles, use JPasswordField Regards saj
I've been selected to go to the moon! All thanks to this tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss