All Packages  Class Hierarchy  This Package  Previous  Next  Index  

Class java.awt.swing.JCheckBox

java.lang.Object
    |
    +----java.awt.Component
            |
            +----java.awt.Container
                    |
                    +----java.awt.swing.JComponent
                            |
                            +----java.awt.swing.AbstractButton
                                    |
                                    +----java.awt.swing.JToggleButton
                                            |
                                            +----java.awt.swing.JCheckBox

public class JCheckBox
extends JToggleButton
implements Accessible
An implementation of a CheckBox


Constructor Index

 o JCheckBox()
Creates a checkboxbutton with no set text
 o JCheckBox(Icon)
Creates a checkbox with a icon.
 o JCheckBox(Icon, boolean)
Creates a checkbox with a icon.
 o JCheckBox(String)
Creates a checkbox with text
 o JCheckBox(String, boolean)
Creates a checkbox.
 o JCheckBox(String, Icon)
Creates a checkbox.
 o JCheckBox(String, Icon, boolean)
Creates a checkbox.

Method Index

 o getAccessibleActionDescription(int)
Return a description of the specified action of the object.
 o getAccessibleRole()
Get the role of this object.
 o getUIClassID()
 o updateUI()
Notification from the UIFactory that the L&F has changed.

Constructors

 o JCheckBox
public JCheckBox()
Creates a checkboxbutton with no set text

 o JCheckBox
public JCheckBox(Icon icon)
Creates a checkbox with a icon.

 o JCheckBox
public JCheckBox(Icon icon,
                 boolean selected)
Creates a checkbox with a icon.

 o JCheckBox
public JCheckBox(String text)
Creates a checkbox with text

 o JCheckBox
public JCheckBox(String text,
                 boolean selected)
Creates a checkbox.

Parameters:
text - the text of the checkbox.
 o JCheckBox
public JCheckBox(String text,
                 Icon icon)
Creates a checkbox.

Parameters:
text - the text of the button.
 o JCheckBox
public JCheckBox(String text,
                 Icon icon,
                 boolean selected)
Creates a checkbox.

Parameters:
text - the text of the checkbox.

Methods

 o updateUI
public void updateUI()
Notification from the UIFactory that the L&F has changed.

Overrides:
updateUI in class JToggleButton
 o getUIClassID
public String getUIClassID()
Returns:
"CheckBoxUI"
Overrides:
getUIClassID in class JToggleButton
See Also:
getUIClassID, getUI
 o getAccessibleRole
public AccessibleRole getAccessibleRole()
Get the role of this object.

Returns:
an instance of AccessibleRole describing the role of the object
Overrides:
getAccessibleRole in class JToggleButton
See Also:
AccessibleRole
 o getAccessibleActionDescription
public String getAccessibleActionDescription(int i)
Return a description of the specified action of the object.

Parameters:
i - zero-based index of the actions
Returns:
a description of the action ("select")
Overrides:
getAccessibleActionDescription in class AbstractButton

All Packages  Class Hierarchy  This Package  Previous  Next  Index  

Submit a bug or feature