how should I validate fields?
I have a GUI app I am developing with several forms. Fields on forms are Name, street, city, zip, etc....
I pass in a little grammar rule for each field that makes sure it is alpha, numeric or alpha numeric. That's all the checking I do currently.
How can I make sure a textfield does not allow them to type in more than 15 characters if that is what I want limit to be for say FirstName field?
If they try to type the 16th character I want them to get the annoying beep and not process a key pressed event.
Any ideas? classes I should look at ? listeners?
Also simple code would be greatly appreciated if anyone has time.
thanks ahead of time..
jmschrei

