Skip to end of metadata
Go to start of metadata

Generated Object

A javax.swing.JCheckBox is returned, unless the user passes in a subclass of JCheckBox as the value argument, in which case the value argument is returned.


See also: JComponent

Declared in JCheckBox

  • borderPaintedFlat <boolean> Whether the border is painted flat.

Declared in AbstractButton

  • selected <boolean> If the checkbox is currently selected
  • action <Action> the Action instance connected with this ActionEvent source
  • actionCommand <String> actionCommand
  • model <ButtonModel> Model that the Button uses.
  • multiClickThreshhold <long> multiClickThreshhold.
  • enabled <boolean> Whether the Button is active.
Text related
  • text <String> The button's text.
  • label <String> Replace by setText(text)
  • mnemonic <int> the keyboard character mnemonic
  • displayedMnemonicIndex <int> the index into the String to draw the keyboard character mnemonic at
  • horizontalTextPosition <int> The horizontal position of the text relative to the icon.
  • verticalTextPosition <int> The vertical position of the text relative to the icon.
Rendering related
  • borderPainted <boolean> Whether the border should be painted.
  • contentAreaFilled <boolean> Whether the button should paint the content area or leave it transparent.
  • focusPainted <boolean> Whether focus should be painted
  • rolloverEnabled <boolean> Whether rollover effects should be enabled.
  • margin <Insets> The space between the button's border and the label
  • iconTextGap <int> If both the icon and text properties are set, this property defines the space between them.
Icon related
  • icon <Icon> The button's default icon. The Icon is the checkbox in the unselected state. Set it to null to get the platform default.
  • disabledIcon <Icon> The disabled icon for the button.
  • pressedIcon <Icon> The pressed icon for the button.
  • rolloverIcon <Icon> The rollover icon for the button.
  • selectedIcon <Icon> The selected icon for the button. The Icon is the checkbox in the selected state. Set it to null to get the platform default.
  • disabledSelectedIcon <Icon> The disabled selection icon for the button.
  • rolloverSelectedIcon <Icon> The rollover selected icon for the button.
Alignment Related
  • horizontalAlignment <int> The horizontal alignment of the icon and text.
  • verticalAlignment <int> The vertical alignment of the icon and text.


No child content is accepted in a checkBox.


checkBox creates a visual toggleing checkbox type widget.
//TODO add an image



Observable Attributes

  • borderPaintedFlat
  • selected - via synthetic observation
  • action
  • borderPainted
  • contentAreaFilled
  • disabledIcon
  • disabledSelectedIcon
  • displayedMnemonicIndex
  • focusPainted
  • hideActionText
  • horizontalAlignment
  • horizontalTextPosition
  • icon
  • iconTextGap
  • label
  • margin
  • mnemonic
  • model
  • pressedIcon
  • rolloverEnabled
  • rolloverIcon
  • rolloverSelectedIcon
  • selectedIcon
  • text
  • verticalAlignment
  • verticalTextPosition
  • No labels