I've been researching how I could preview the key entered in a jPasswordField by pressing a JButton. But I happen to find nothing.
Could you tell me if you can, and if you can, how do you do it?
I've been researching how I could preview the key entered in a jPasswordField by pressing a JButton. But I happen to find nothing.
Could you tell me if you can, and if you can, how do you do it?
You have to use the setEchoChar () . Passing the value 0 indicates that you want to see the JPasswordField as if it were a JTextField
setEchoChar((char)0);