JCheckbox(String text) - create a checkbox with the passed-in text as the label.
JCheckbox(String text, boolean on) - create a checkbox with the passed-in text as the label. If on is true, the the checkbox is selected. If on is false, the checkbox is not selected. (Note this is 1.1 only.)
String getLabel() - returns a string containing the checkbox's label.
boolean getState() - returns true if the check box is selected, false if
it is not.
JCheckbox applebox = new Checkbox("apples", false);
getContentPane().add(applebox);