Is there any code out there that will hide passwords when type at the console?

I'm finishing up on a console program and it requires username/password, but I
cannot seem to figure out how to hide the password as it's being typed.

I'm sure some other Java programs have run into this, but google searches have
been unsuccessful.

-- 
Minneapolis St. Paul Twin Cities MN        | Phone : (952)943-8700
http://www.mn-linux.org Minnesota Linux    | Fax   : (952)943-8500
Key fingerprint =  6C E9 51 4F D5 3E 4C 66 62 A9 10 E5 35 85 39 D9