How do I display the text of a JPasswordField rather than set 0 as an echo char?
Java Docs says:
Setting a value of 0 indicates that you wish
Do this:
outField.setEchoChar((char)0);
If you do this:
outField.setEchoChar(0);
then 0 is an integer, not a char, and the method requires a char.
outField.setEchoChar('0');
then '0' is equivalent to (char)48.