Java UI Components

To add one to a panel you:
  1. Create the component
  2. Add it to the applet or panel


Example (add to the applet's panel):
public void init() {
  Button b = new Button("CLEAR");
  add(b);
}



Examples

Labels

Buttons

Checkboxes

Radio Buttons

Choice Menu

Text Fields