Password in JTextArea

后端 未结 4 1519
无人及你
无人及你 2021-01-24 18:50

Is there any way using JTextArea to hide the text when user types??

Kind of like password..

in JTextArea i have..

passw

4条回答
  •  闹比i
    闹比i (楼主)
    2021-01-24 19:36

    Simply use JPasswordField a subclass of JTextField. It's very clearly and simply discussed in java doc so I avoid repeat.

提交回复
热议问题