Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-13-2008, 06:44 PM
Member
 
Join Date: Apr 2008
Posts: 2
tanalyw is on a distinguished road
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
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 04-14-2008, 10:56 AM
CaptainMorgan's Avatar
Moderator
 
Join Date: Dec 2007
Location: NewEngland, US
Posts: 839
CaptainMorgan will become famous soon enoughCaptainMorgan will become famous soon enough
Send a message via AIM to CaptainMorgan
Try the Sun tutorial on password fields.

Welcome to the Java Forums!
Please read the FAQ to get you started.

See you around!
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
to our beloved Java Forums!
(closes on September 4, 2008)
Want to voice your opinion on your IDE/Editor of choice?
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
!
Got a little Capt'n in you? (drink responsibly)
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 04-16-2008, 02:06 PM
sukatoa's Avatar
Senior Member
 
Join Date: Jan 2008
Location: Cebu City, Philippines
Posts: 518
sukatoa is on a distinguished road
Send a message via Yahoo to sukatoa
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
Bookmark Post in Technorati
Reply With Quote
  #4 (permalink)  
Old 04-16-2008, 03:09 PM
Member
 
Join Date: Apr 2008
Posts: 2
sandip_ingle21 is on a distinguished road
Quote:
Originally Posted by tanalyw View Post
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
use password field in java or if you are using swing then use jpasswordfield
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
accessing command prompt using java (netbeans)... kureikougaiji New To Java 6 06-27-2008 04:01 PM
Password System help quickfingers New To Java 1 06-23-2008 07:18 PM
Asking for password from a Servlet Java Tip Java Tips 0 01-27-2008 09:05 PM
netbeans 6.0 not show commpunent or show blank page fahimaamir NetBeans 1 01-26-2008 07:20 AM
problem when I try to compile a program from command prompt osval Advanced Java 2 08-06-2007 10:16 PM


All times are GMT +3. The time now is 06:23 AM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org