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
When you do this:
outField.setEchoChar(0);
you're trying to pass an int into the method, and this isn't allowed since it expects a char type. Instead try
outField.setEchoChar((char)0);