Java JCheckBox Constructor's

javax.swing
Class JCheckBox

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjavax.swing.JComponent
              extended byjavax.swing.AbstractButton
                  extended byjavax.swing.JToggleButton
                      extended byjavax.swing.JCheckBox
All Implemented Interfaces:
Accessible, ImageObserver, ItemSelectable, MenuContainer, Serializable, SwingConstants
 

JCheckBox Constructor

 

 

 

JCheckBox()
Creates an initially unselected check box button with no text, no icon.


JCheckBox(Action a)
Creates a check box where properties are taken from the Action supplied.


JCheckBox(Icon icon)
Creates an initially unselected check box with an icon.


JCheckBox(Icon icon, boolean selected)
Creates a check box with an icon and specifies whether or not it is initially selected.


JCheckBox(String text)
Creates an initially unselected check box with text.


JCheckBox(String text, boolean selected)
Creates a check box with text and specifies whether or not it is initially selected.


JCheckBox(String text, Icon icon)
Creates an initially unselected check box with the specified text and icon.


JCheckBox(String text, Icon icon, boolean selected)
Creates a check box with text and icon, and specifies whether or not it is initially selected.