change asterisks by points in jpasswordfield java

3

The issue is that I do not want them to come out

I want it to come out like that, with points

How do I do it? use netbeans

    
asked by Cesar Martinez Quiroga 28.02.2018 в 03:52
source

1 answer

6

You have to modify the echoChar property, therefore assuming that you use netbeans you can guide you with the following image.

In case you need to do it directly with code you should add the following:

jPasswordField.setEchoChar('@ aqui el carácter que deseas utilizar');
    
answered by 28.02.2018 / 04:11
source