| Author |
Regec Problem
|
Felipe Messina
Greenhorn
Joined: Oct 21, 2009
Posts: 11
|
|
I wanna a KeyPressEvent that fills a text field with a mask like this(999,9999).
I have to do this, using regular expression.
Can someone help me?
thanks
|
Felipe Messina
SCJP Certified
|
 |
John de Michele
Rancher
Joined: Mar 09, 2009
Posts: 600
|
|
Felipe:
What have you tried so far? What errors or exceptions are you getting? Remember, JavaRanch is not a code mill.
John.
|
 |
Felipe Messina
Greenhorn
Joined: Oct 21, 2009
Posts: 11
|
|
I did this
But this way, let me put only 2 digits after the "," and I HAVE to have 3 digits before and 4 after.
|
 |
John de Michele
Rancher
Joined: Mar 09, 2009
Posts: 600
|
|
Felipe:
What language are you using?
John.
|
 |
Henry Wong
author
Sheriff
Joined: Sep 28, 2004
Posts: 16695
|
|
Looks like Javascript. Java and Javascript are *not* the same thing. Anyway, moving this to the JS forum.
Henry
|
Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
|
 |
Felipe Messina
Greenhorn
Joined: Oct 21, 2009
Posts: 11
|
|
JavaScript..
I know that isnt the same, but I didnt find the JavaScript forum.
|
 |
 |
|
|
subject: Regec Problem
|
|
|