You do not have control of the command line from
within Java. Generally, whatever is typed there, stays
there unless you override the OS functionality, as far
as I know.<br><br>Instead, I would suggest you use
the TextField or JTextField to present a small gui
that can hide the password characters.