Liking cljdoc? Tell your friends :D

javax.swing.JCheckBox

An implementation of a check box -- an item that can be selected or deselected, and which displays its state to the user. By convention, any number of check boxes in a group can be selected. See How to Use Buttons, Check Boxes, and Radio Buttons in The Java Tutorial for examples and information on using check boxes.

Buttons can be configured, and to some degree controlled, by Actions. Using an Action with a button has many benefits beyond directly configuring a button. Refer to Swing Components Supporting Action for more details, and you can find more information in How to Use Actions, a section in The Java Tutorial.

Warning: Swing is not thread safe. For more information see Swing's Threading Policy.

Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeans™ has been added to the java.beans package. Please see XMLEncoder.

An implementation of a check box -- an item that can be selected or
deselected, and which displays its state to the user.
By convention, any number of check boxes in a group can be selected.
See How to Use Buttons, Check Boxes, and Radio Buttons
in The Java Tutorial
for examples and information on using check boxes.

Buttons can be configured, and to some degree controlled, by
Actions.  Using an
Action with a button has many benefits beyond directly
configuring a button.  Refer to
Swing Components Supporting Action for more
details, and you can find more information in How
to Use Actions, a section in The Java Tutorial.

Warning: Swing is not thread safe. For more
information see Swing's Threading
Policy.

Warning:
Serialized objects of this class will not be compatible with
future Swing releases. The current serialization support is
appropriate for short term storage or RMI between applications running
the same version of Swing.  As of 1.4, support for long term storage
of all JavaBeans™
has been added to the java.beans package.
Please see XMLEncoder.
raw docstring

*-border-painted-flat-changed-propertyclj

Static Constant.

Identifies a change to the flat property.

type: java.lang.String

Static Constant.

Identifies a change to the flat property.

type: java.lang.String
raw docstring

->j-check-boxclj

(->j-check-box)
(->j-check-box icon)
(->j-check-box icon selected)
(->j-check-box text icon selected)

Constructor.

Creates a check box with text and icon, and specifies whether or not it is initially selected.

text - the text of the check box. - java.lang.String icon - the Icon image to display - javax.swing.Icon selected - a boolean value indicating the initial selection state. If true the check box is selected - boolean

Constructor.

Creates a check box with text and icon,
 and specifies whether or not it is initially selected.

text - the text of the check box. - `java.lang.String`
icon - the Icon image to display - `javax.swing.Icon`
selected - a boolean value indicating the initial selection state. If true the check box is selected - `boolean`
raw docstring

border-painted-flat?clj

(border-painted-flat? this)

Gets the value of the borderPaintedFlat property.

returns: the value of the borderPaintedFlat property - boolean

Gets the value of the borderPaintedFlat property.

returns: the value of the borderPaintedFlat property - `boolean`
raw docstring

get-accessible-contextclj

(get-accessible-context this)

Gets the AccessibleContext associated with this JCheckBox. For JCheckBoxes, the AccessibleContext takes the form of an AccessibleJCheckBox. A new AccessibleJCheckBox instance is created if necessary.

returns: an AccessibleJCheckBox that serves as the AccessibleContext of this JCheckBox - javax.accessibility.AccessibleContext

Gets the AccessibleContext associated with this JCheckBox.
 For JCheckBoxes, the AccessibleContext takes the form of an
 AccessibleJCheckBox.
 A new AccessibleJCheckBox instance is created if necessary.

returns: an AccessibleJCheckBox that serves as the
         AccessibleContext of this JCheckBox - `javax.accessibility.AccessibleContext`
raw docstring

get-ui-class-idclj

(get-ui-class-id this)

Returns a string that specifies the name of the L&F class that renders this component.

returns: the string "CheckBoxUI" - java.lang.String

Returns a string that specifies the name of the L&F class
 that renders this component.

returns: the string "CheckBoxUI" - `java.lang.String`
raw docstring

set-border-painted-flatclj

(set-border-painted-flat this b)

Sets the borderPaintedFlat property, which gives a hint to the look and feel as to the appearance of the check box border. This is usually set to true when a JCheckBox instance is used as a renderer in a component such as a JTable or JTree. The default value for the borderPaintedFlat property is false. This method fires a property changed event. Some look and feels might not implement flat borders; they will ignore this property.

b - true requests that the border be painted flat; false requests normal borders - boolean

Sets the borderPaintedFlat property,
 which gives a hint to the look and feel as to the
 appearance of the check box border.
 This is usually set to true when a
 JCheckBox instance is used as a
 renderer in a component such as a JTable or
 JTree.  The default value for the
 borderPaintedFlat property is false.
 This method fires a property changed event.
 Some look and feels might not implement flat borders;
 they will ignore this property.

b - true requests that the border be painted flat; false requests normal borders - `boolean`
raw docstring

update-uiclj

(update-ui this)

Resets the UI property to a value from the current look and feel.

Resets the UI property to a value from the current look and feel.
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close