DIGIT-ARC read-only archive · snapshot: July 23, 2026

create login java program

7 posts · originally from https://geek.digit.in/community/threads/create-login-java-program.97698/

dashang
dashang Original post #1
Sep 13, 2008 at 10:05 AM
I am looking for code to create login java program in which user enter pass if its correct run remaining program else terminate/ Help me guys. I am having problem with whowing '*' as display how to do it???
redhat
redhat #2
Sep 13, 2008 at 12:24 PM
I too once faced the same problems...
Are you using applets? or a UI? or is it just the command line??
Because if its applets or UI it can be done, I had read a article on sun Java's website for it, but in command line, its almost impossible, although I found a trick, its not very good, found it on sun's website, dont remember just now
dashang
dashang #3
Sep 13, 2008 at 1:12 PM
I am looking for both solutions if you have UI based code then please tell
QwertyManiac
Sep 15, 2008 at 2:11 AM
This thread should give an acceptable solution: Mask input in Java (Thread by redhat)
ray|raven
Sep 15, 2008 at 8:21 AM
^QwertyM : JPasswordField doesnt need to set .echoChar()
Not unless you wanna show some other char specifically.
QwertyManiac
Sep 15, 2008 at 8:38 AM
Ohk, does it use asterix by default on all platforms? Windows uses a different thing so I thought maybe you had to set it that way. Wrote those on *nix though :p
ray|raven
Sep 15, 2008 at 8:45 AM
It is '*' by default. But i believe it changes depending on the L&F used.