How do I show contents from the password field in javafx using checkbox [duplicate]
问题 This question already has answers here : How to unmask a JavaFX PasswordField or properly mask a TextField? (5 answers) Closed 18 days ago . Im a student studying java and javafx, how do I show the password in the passwordfield using a checkbox? I am using gluon scenebuilder as my fxml editor 回答1: The duplicate is listed above for the correct but more complicated way of doing this. In this answer, I am showing two examples. One with a CheckBox and the other with the all-seeing eye. The eye is