Results 1 to 4 of 4
- 04-13-2008, 05:44 PM #1
Member
- Join Date
- Apr 2008
- Posts
- 4
- Rep Power
- 0
How do I show * in a password prompt?
Hi all,
I would like to ask if it is possible for me to show * when user enter his/her input on console base after a prompt?
e.g I prompt the following
Enter password:
When user enter his/her input, it show appear in the console as:
Enter password: ******
It is possible? if so, how? thanks
- 04-14-2008, 09:56 AM #2
Try the Sun tutorial on password fields.
Welcome to the Java Forums!
Please read the FAQ to get you started.
See you around! :)Vote for the new slogan to our beloved Java Forums! (closes on September 4, 2008)
Want to voice your opinion on your IDE/Editor of choice? Vote now!
Got a little Capt'n in you? (drink responsibly)
- 04-16-2008, 01:06 PM #3
having that on console "well, i dont know.... try to search for it"...
but, if you like it to implement on GUI... there is a passwordfield, sincerely built it for you by SunMicroSystems....
or if you like to have a challenge, you can also implement it on a textfield, the advantage is, you can monitor it's input. and can be manipulated.
regards,
sukatoa
- 04-16-2008, 02:09 PM #4
Member
- Join Date
- Apr 2008
- Posts
- 2
- Rep Power
- 0
Similar Threads
-
accessing command prompt using java (netbeans)...
By kureikougaiji in forum New To JavaReplies: 6Last Post: 06-27-2008, 03:01 PM -
Password System help
By quickfingers in forum New To JavaReplies: 1Last Post: 06-23-2008, 06:18 PM -
Asking for password from a Servlet
By Java Tip in forum Java TipReplies: 0Last Post: 01-27-2008, 08:05 PM -
netbeans 6.0 not show commpunent or show blank page
By fahimaamir in forum NetBeansReplies: 1Last Post: 01-26-2008, 06:20 AM -
problem when I try to compile a program from command prompt
By osval in forum Advanced JavaReplies: 2Last Post: 08-06-2007, 09:16 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks