Java Single Field Validation Example 1

This page contains 4 Java Applets that demonstrate some of the basic AWT components and how they can be used to validate User input.

TextField Example: Enter a value and hit return
Applet Source

Choice Example: Click the component to see the choices. Select one.
Applet Source

List Examples: Select many from the first list. Only one from the second list.
Note: You do not need to hold down "ctrl" when making multiple selections as you do with the HTML SELECT component.
Applet Source

Checkbox and CheckboxGroup Examples: The first row contains individual checkboxes. Choose as many as you want. The second row is checkboxes within a checkboxgroup. You can only choose one.
Applet Source