I am working with jPasswordField in java in order to make a log in system.
I have used jTextField for name input and jPasswordField for password. I want to create an option of "Show Characters" in my program that may allow the user to view the characters he has typed in passwordfield.
I have tried
- retrieving data from password field
- converting it into string
- displaying that string in passwordfield using .setText() method
But this did not work, as it displays everything in esteric (*****) form.
Please help...
You have to use
httpProxyPassword.setEchoChar((char) 0);for that. HerehttpProxyPasswordis a name of textbox you can use as per your's.