Results 1 to 2 of 2
Thread: Jpassword problem
- 05-14-2007, 04:43 PM #1
Member
- Join Date
- May 2007
- Posts
- 38
- Rep Power
- 0
Jpassword problem
I'm using JPassword and KeyReleased event, when a key is pressed as "ctrl" and in the event I ask with getPassword for the first digit of the password, ctrl does not generate a character, it generates an exception java.lang. ArrayIndexOutOfBoundsException.
I tried with the following instruction to avoid the exception and worked out, but in the temp var (that is char type) didn't save anything
Java Code:try { temp=Password.getPassword()[n]; } catch (ArrayIndexOutOfBoundsException e){}
what do I save in temp when I press ctrl ó Alt??
How can I ask if temp var is null?
Thanks youLast edited by Nick15; 06-01-2007 at 01:37 AM.
- 05-14-2007, 05:47 PM #2
Member
- Join Date
- May 2007
- Posts
- 41
- Rep Power
- 0
Bookmarks