How do I hide the text that the user enters into a password JTextField?

前端 未结 1 1849
耶瑟儿~
耶瑟儿~ 2021-01-20 15:51

I have a class that asks for a username and password to autenticate a user in the application.

Inside it, I have 2 JTextField objects, one for the u

相关标签:
1条回答
  • 2021-01-20 16:13

    Instead of using a JTextField, use a JPasswordField for your pswdTextField

    0 讨论(0)
提交回复
热议问题