Search code examples
javapasswordsbluej

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.


Solution

  • 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.