hi, i am trying to do masking on an inputDialog. My code is: String passField= JOptionPane.showInputDialog("Password:");
And this is a code i found on the internet which works but only if i use Fields which i'm not: JPasswordField password = new JPasswordField(); password.setEchoChar('#');
i already tried to make the InputDialog to mask but i can't. Does anybody know how to do it? thank you