Java Single Field Validation Example 2

Enter data in each field. As you move to the next field (by clicking) the field is validated and a Success or Error message is displayed. The checks are fairly simple: First Name is required; 1 character for middle initial; at least 5 characters for last name; and an integer for age.

Applet Source