Java UI Components To add one to a panel you: Create the component 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
public void init() { Button b = new Button("CLEAR"); add(b); }