All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.sun.java.swing.JCheckBox

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----com.sun.java.swing.JComponent
                           |
                           +----com.sun.java.swing.AbstractButton
                                   |
                                   +----com.sun.java.swing.JToggleButton
                                           |
                                           +----com.sun.java.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 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

All Packages  Class Hierarchy  This Package  Previous  Next  Index