Cesar Martinez Quiroga Asked: 2020-02-28 18:52:34 +0800 CST 2020-02-28 18:52:34 +0800 CST 2020-02-28 18:52:34 +0800 CST change asterisks to dots in jpasswordfield java 772 The thing is, I don't want them to go out * I want it to come out like this, with points How do I do it? i use netbeans java 2 Answers Voted Best Answer Aarón Zúñiga 2020-02-28T19:11:09+08:002020-02-28T19:11:09+08:00 You have to modify the echoChar property, so assuming you use netbeans you can guide yourself with the following image. In case you need to do it directly with code, you must add the following: jPasswordField.setEchoChar('@ aqui el carácter que deseas utilizar'); Frank C. Atencio Loreth 2020-04-12T01:55:39+08:002020-04-12T01:55:39+08:00 You can use: myPasswordField.setEchoChar('\u25cf')
You have to modify the echoChar property, so assuming you use netbeans you can guide yourself with the following image.
In case you need to do it directly with code, you must add the following:
You can use: