Java java.awt Checkbox fields, constructors, methods, implement or subclass

Example usage for Java java.awt Checkbox fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for java.awt Checkbox.

The text is from its open source code.

Constructor

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.

Method

voidaddItemListener(ItemListener l)
Adds the specified item listener to receive item events from this check box.
StringgetLabel()
Gets the label of this check box.
booleangetState()
Determines whether this check box is in the "on" or "off" state.
voidsetEnabled(boolean b)
Enables or disables this component, depending on the value of the parameter b .
voidsetLocation(int x, int y)
Moves this component to a new location.
voidsetSize(int width, int height)
Resizes this component so that it has width width and height height .
voidsetState(boolean state)
Sets the state of this check box to the specified state.
voidsetVisible(boolean b)
Shows or hides this component depending on the value of parameter b .