The key used for storing a
Boolean
that corresponds
to the selected state. This is typically used only for components
that have a meaningful selection state. For example,
JRadioButton
and
JCheckBox
make use of
this but instances of
JMenu
don't.
This property differs from the others in that it is both read
by the component and set by the component. For example,
if an Action
is attached to a JCheckBox
the selected state of the JCheckBox
will be set from
that of the Action
. If the user clicks on the
JCheckBox
the selected state of the JCheckBox
and the Action
will both be updated.
Note: the value of this field is prefixed with 'Swing' to
avoid possible collisions with existing Actions
.
Since:
1.6