Click to See Complete Forum and Search --> : How to limit input in TextField??????


cntomcom
January 4th, 2003, 08:22 PM
If I want user to input just 10 characters or digits, no more or
no less. How could I do???

abramia
January 4th, 2003, 10:49 PM
There is an example of this in the java tutorial:

http://java.sun.com/docs/books/tutorial/uiswing/components/textfield.html#validation

Hope this helps you.

Good Luck,
Avi.

cntomcom
January 4th, 2003, 11:03 PM
Thanks.
I will try!