|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object![]()
![]()
![]()
java.awt.Component
![]()
![]()
![]()
java.awt.Container
![]()
![]()
![]()
javax.swing.JComponent
![]()
![]()
![]()
javax.swing.AbstractButton
![]()
![]()
![]()
javax.swing.JToggleButton
![]()
![]()
![]()
javax.swing.JCheckBox
, ItemSelectable
, MenuContainer
, Serializable
, Accessible
, SwingConstants

public class JCheckBox


An implementation of a check box -- an item that can be selected or deselected, and which displays its state to the user. By convention, any number of check boxes in a group can be selected. See How to Use Buttons, Check Boxes, and Radio Buttons in The Java Tutorial for examples and information on using check boxes.
Warning:
Serialized objects of this class will not be compatible with
future Swing releases. The current serialization support is
appropriate for short term storage or RMI between applications running
the same version of Swing. As of 1.4, support for long term storage
of all JavaBeansTM
has been added to the java.beans package.
Please see XMLEncoder
.
JRadioButton
,
Serialized Form| Nested Class Summary | |
|---|---|
protected class |
JCheckBox.AccessibleJCheckBox
This class implements accessibility support for the JCheckBox class. |
Nested classes/interfaces inherited from class javax.swing.JToggleButton ![]() |
|---|
JToggleButton.AccessibleJToggleButton |
Nested classes/interfaces inherited from class javax.swing.AbstractButton ![]() |
|---|
AbstractButton.AccessibleAbstractButton |
Nested classes/interfaces inherited from class javax.swing.JComponent ![]() |
|---|
JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container ![]() |
|---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component ![]() |
|---|
Component.AccessibleAWTComponent |
| Field Summary | |
|---|---|
static String |
BORDER_PAINTED_FLAT_CHANGED_PROPERTY
Identifies a change to the flat property. |
Fields inherited from class javax.swing.JComponent ![]() |
|---|
accessibleContext |
Fields inherited from class java.awt.Component ![]() |
|---|
BOTTOM_ALIGNMENT |
Fields inherited from interface javax.swing.SwingConstants ![]() |
|---|
BOTTOM |
Fields inherited from interface java.awt.image.ImageObserver ![]() |
|---|
ABORT |
| Constructor Summary | |
|---|---|
JCheckBox
Creates an initially unselected check box button with no text, no icon. |
|
JCheckBox
Creates a check box where properties are taken from the Action supplied. |
|
JCheckBox
Creates an initially unselected check box with an icon. |
|
JCheckBox
Creates a check box with an icon and specifies whether or not it is initially selected. |
|
JCheckBox
Creates an initially unselected check box with text. |
|
JCheckBox
Creates a check box with text and specifies whether or not it is initially selected. |
|
JCheckBox
Creates an initially unselected check box with the specified text and icon. |
|
JCheckBox
Creates a check box with text and icon, and specifies whether or not it is initially selected. |
|
| Method Summary | |
|---|---|
protected void |
configurePropertiesFromAction
Factory method which sets the ActionEvent source's
properties according to values from the Action instance. |
protected PropertyChangeListener |
createActionPropertyChangeListener
Factory method which creates the PropertyChangeListener used to update the ActionEvent source as properties change on its Action instance. |
AccessibleContext |
getAccessibleContext
Gets the AccessibleContext associated with this JCheckBox. |
String |
getUIClassID
Returns a string that specifies the name of the L&F class that renders this component. |
boolean |
isBorderPaintedFlat
Gets the value of the borderPaintedFlat property. |
protected String |
paramString
Returns a string representation of this JCheckBox. |
void |
setBorderPaintedFlat
Sets the borderPaintedFlat property,
which gives a hint to the look and feel as to the
appearance of the check box border. |
void |
updateUI
Resets the UI property to a value from the current look and feel. |
Methods inherited from class javax.swing.AbstractButton ![]() |
|---|
addActionListener |