The simplest solution would be to put another text field over it when needed. I don't think you can change the field type. Or have one already that's hidden and show it when needed.
The Password field is a different java class and can't be simply switched, it doesn't provide a showAsPlainText method.
You may have success if you try changing the textformatter attached to the passwordfield, but as I say, the simplest would be to show another textfield.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.