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
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 updateUI()
Gets a new UI object from the default UIFactory.

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()
Gets a new UI object from the default UIFactory.

Overrides:
updateUI in class JToggleButton

All Packages  Class Hierarchy  This Package  Previous  Next  Index