Basil Victor Basil Victor - 1 year ago 117
Java Question

How to convert input into asterisk(*) without pressing enter in BlueJ

I want to take a password from the user in the Terminal Window of BlueJ. So whatever the user is entering must instantly convert into an asterisk(*). I don't want to take the the input in separate character but as a single string. Please help me. I am using BlueJ. If anything is required pls tell me.

Answer Source

You just need to have GUI Extension for Bluej. And then we have to use JPassword field to convert all the entered alphabets or numbers into asterisk(*). That's it.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download