How to unmask a JavaFX PasswordField or properly mask a TextField?

后端 未结 5 953
孤街浪徒
孤街浪徒 2020-11-29 11:19

In a UI of mine, I have a PasswordField like so (urm the one at the bottom!):

\"Login

5条回答
  •  醉酒成梦
    2020-11-29 11:39

    You could use a custom Tooltip to show the password, and use the Checkbox to show / hide the Tooltip.

    The code for this demo can be found here.

提交回复
热议问题