Wednesday, 15 February 2012

Java Swing - JFormattedTextField -



Java Swing - JFormattedTextField -

i have jformattedtextfield s in form. want validate length , characters beingness inserted in field.

e.g firstname must not allow length more 20 characters , should not allow special , numeric characters beingness inserted. space can considered.

please help me how can accomplish goal.

i want validate length , characters beingness inserted in field.

use maskformatter jformattedtextfield. maskformatter can:

limit number of characters provide string of valid characters

read api more info , examples.

java swing validation jformattedtextfield

No comments:

Post a Comment