Results 1 to 7 of 7
- 06-12-2011, 10:01 PM #1
Member
- Join Date
- Jun 2011
- Posts
- 5
- Rep Power
- 0
Ready to Program JAVA - passwords
Hey guys i was wondering if there was a way to code the way a user would enter in a password and not see what they are typing.
for example:
String password;
c.println ("Please enter in your password");
c.setCursor (10, 10);
password=c.readString ();
now if you were to use this code, you'd be able to see yourself typing in the password. is there a way to make it so you cannot see? Like when you type it there would be dots or whatever?
thanks in advance!
- 06-13-2011, 05:47 AM #2
Member
- Join Date
- May 2011
- Location
- Maryland
- Posts
- 38
- Rep Power
- 0
rather than a string try using a JPasswordField and then you can set the "echo charecter" which is what the actual password is visually replaced with when typing
check this out for more details about its methods etc: JPasswordField
- 06-13-2011, 07:17 AM #3
What class is c in your code? Recommended reading: How to ask questions the smart way
db
- 06-13-2011, 07:19 AM #4
- 06-14-2011, 04:03 AM #5
Member
- Join Date
- May 2011
- Location
- Maryland
- Posts
- 38
- Rep Power
- 0
- 06-14-2011, 04:15 AM #6
Senior Member
- Join Date
- Apr 2010
- Location
- Philippines
- Posts
- 580
- Rep Power
- 4
Original post or Original Poster.
- 06-14-2011, 02:12 PM #7
Member
- Join Date
- May 2011
- Location
- Maryland
- Posts
- 38
- Rep Power
- 0
Similar Threads
-
Cannot Run my ready to program java code on Ubuntu 10.10 i386 desktop
By O.Ali in forum New To JavaReplies: 4Last Post: 03-09-2011, 11:30 PM -
hi i need help with adding the total in this java ready to program IDE.
By cold in forum New To JavaReplies: 1Last Post: 03-29-2010, 01:07 AM -
[SOLVED] Ready to Program Java IDE
By Starr29 in forum New To JavaReplies: 9Last Post: 07-24-2009, 05:21 PM -
Ready to Program Java IDE Problem #4
By Starr29 in forum New To JavaReplies: 5Last Post: 01-06-2009, 03:38 PM -
[SOLVED] Ready to Program Java IDE Problem #2
By Starr29 in forum New To JavaReplies: 2Last Post: 01-03-2009, 01:02 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks