Matt Gerrans
Posts: 1153
Nickname: matt
Registered: Feb, 2002
|
|
Re: accept password in dos using java
|
Posted: May 19, 2002 12:58 AM
|
|
This kind of thing would normally be done with functions in conio.h (like getch()), whereas Java only has buffered I/O on the console, as far as I know. It would be pretty easy to write a little native method that does the trick, by calling getch() to get characters and putting (putch()) a '*' for each character (besides backspace, enter, etc.). The same source might compile for both UNIX and DOS, as well.
|
|