Checkbox.
The peer interfaces are intended only for use in porting
the AWT. They are not intended for use by application
developers, and developers should not implement peers
nor invoke any of the peer methods directly on the peer
instances.
| Modifier and Type | Method and Description |
|---|---|
| public void | setCheckboxGroup(CheckboxGroup
the checkbox group to set, or g)null when this
checkbox should not be placed in any groupSets the checkbox group for this checkbox. |
| public void | |
| public void | setState(boolean
the state to set on the checkbox state)Sets the state of the checkbox to be checked |
| setCheckboxGroup | back to summary |
|---|---|
| public void setCheckboxGroup(CheckboxGroup g) Sets the checkbox group for this checkbox. Checkboxes in one checkbox
group can only be selected exclusively (like radio buttons). A value
of
| |
| setLabel | back to summary |
|---|---|
| public void setLabel(String label) Sets the label that should be displayed on the checkbox. A value of
| |
| setState | back to summary |
|---|---|
| public void setState(boolean state) Sets the state of the checkbox to be checked
| |