Checkbox

A Checkbox is a label with a small pushbutton. The state of a Checkbox is either true (button pushed in) or false (button out); the default initial state is false. Clicking on a Checkbox toggles the state.



Corresponding source code:

import java.applet.*;
import java.awt.*;
public class CheckboxWidget extends Applet {
    public void init()
    {
        Checkbox m = new Checkbox("Allow Mixed Case");
        add(m);
    }
}

Method(s) of note:

Related Magercise(s):