B4J Question Show Password

tdocs2

Well-Known Member
Licensed User
Longtime User
Greetings, and thank you in advance for answering my question.

In the Open designer, I have added a TextField that I have set as a Password Filed by checking the TextField properties - Password Field. I have also added a separate Checkbox field to show the password.

How do I change the password textfield to show the password?

I could not find a property to set at runtime....

Best regards.

Sandy
 

EnriqueGonzalez

Well-Known Member
Licensed User
Longtime User
when in the desinger you check the Password or use InitializePassword it becomes "javafx.scene.control.PasswordField" instead of Textfield and you cannot show its content. According to this stackoverflow question http://stackoverflow.com/questions/...fx-passwordfield-or-properly-mask-a-textfield

the best solution is create a Textfield hidden, when the user presses "Show Password" pass the information like this textfield1.text = passwordtext.text.
 
Upvote 0
Top