JPasswordField setEchoChar not working....why???
843785Aug 26 2008 — edited Aug 27 2008JPasswordField password = new JPasswordField(15);
password.setEchoChar("#");
when put as a class variable,
doesn't compile, giving errors "identifier expected" and "illegal start of type".
if i put it in the constructor, it says
setEchoChar(char) in javax.swing.JPasswordField cannot be applied to (java.lang.String)
if i put it in the main, it says
non-static variable password cannot be referenced from a static context.
why and what to do????