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
JCheckBox()
- Creates a checkboxbutton with no set text
JCheckBox(Icon)
- Creates a checkbox with a icon.
JCheckBox(Icon, boolean)
- Creates a checkbox with a icon.
JCheckBox(String)
- Creates a checkbox with text
JCheckBox(String, boolean)
- Creates a checkbox.
JCheckBox(String, Icon)
- Creates a checkbox.
JCheckBox(String, Icon, boolean)
- Creates a checkbox.
getAccessibleActionDescription(int)
- Return a description of the specified action of the object.
getAccessibleRole()
- Get the role of this object.
getUIClassID()
-
updateUI()
- Notification from the UIFactory that the L&F
has changed.
JCheckBox
public JCheckBox()
- Creates a checkboxbutton with no set text
JCheckBox
public JCheckBox(Icon icon)
- Creates a checkbox with a icon.
JCheckBox
public JCheckBox(Icon icon,
boolean selected)
- Creates a checkbox with a icon.
JCheckBox
public JCheckBox(String text)
- Creates a checkbox with text
JCheckBox
public JCheckBox(String text,
boolean selected)
- Creates a checkbox.
- Parameters:
- text - the text of the checkbox.
JCheckBox
public JCheckBox(String text,
Icon icon)
- Creates a checkbox.
- Parameters:
- text - the text of the button.
JCheckBox
public JCheckBox(String text,
Icon icon,
boolean selected)
- Creates a checkbox.
- Parameters:
- text - the text of the checkbox.
updateUI
public void updateUI()
- Notification from the UIFactory that the L&F
has changed.
- Overrides:
- updateUI in class JToggleButton
getUIClassID
public String getUIClassID()
- Returns:
- "CheckBoxUI"
- Overrides:
- getUIClassID in class JToggleButton
- See Also:
- getUIClassID, getUI
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
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