Example usage for Java java.awt Checkbox fields, constructors, methods, implement or subclass
The text is from its open source code.
Checkbox(String label, boolean state) Creates a check box with the specified label and sets the specified state. | |
Checkbox(String label) Creates a check box with the specified label. | |
Checkbox(String label, boolean state, CheckboxGroup group) Constructs a Checkbox with the specified label, set to the specified state, and in the specified check box group. | |
Checkbox(String label, CheckboxGroup group, boolean state) Creates a check box with the specified label, in the specified check box group, and set to the specified state. |
void | addItemListener(ItemListener l) Adds the specified item listener to receive item events from this check box. |
String | getLabel() Gets the label of this check box. |
boolean | getState() Determines whether this check box is in the "on" or "off" state. |
void | setEnabled(boolean b) Enables or disables this component, depending on the value of the parameter b . |
void | setLocation(int x, int y) Moves this component to a new location. |
void | setSize(int width, int height) Resizes this component so that it has width width and height height . |
void | setState(boolean state) Sets the state of this check box to the specified state. |
void | setVisible(boolean b) Shows or hides this component depending on the value of parameter b . |