javax.swing
public class JCheckBox extends JToggleButton implements Accessible
selected state. This works very similar to
{@link JToggleButton} and {@link JRadioButton}, but in UI design it
has different semantics. JCheckBoxes are usually
used in multiple-choice scenarios, where a user can select 0..n
of n different options. (This is in contrast to the general RadioButton
semantics where the user can select exactly one of n options).
Note however that this semantics is in no way enforced by the
JCheckBox.
| Nested Class Summary | |
|---|---|
| protected class | JCheckBox.AccessibleJCheckBox
Provides accessibility support for JCheckBox. |
| Field Summary | |
|---|---|
| static String | BORDER_PAINTED_FLAT_CHANGED_PROPERTY |
| Constructor Summary | |
|---|---|
| JCheckBox() | |
| JCheckBox(Action action) | |
| JCheckBox(Icon icon) | |
| JCheckBox(Icon icon, boolean selected) | |
| JCheckBox(String text) | |
| JCheckBox(String text, boolean selected) | |
| JCheckBox(String text, Icon icon) | |
| JCheckBox(String text, Icon icon, boolean selected) | |
| Method Summary | |
|---|---|
| AccessibleContext | getAccessibleContext()
Returns the accessible context for this JCheckBox.
|
| String | getUIClassID()
Returns a string that specifies the name of the Look and Feel class
that renders this component. |
| boolean | isBorderPaintedFlat() |
| protected String | paramString() |
| void | setBorderPaintedFlat(boolean newValue) |
JCheckBox.
Returns: the accessible context for this JCheckBox