Java Reference
In-Depth Information
weight
.
this?
Yes. Swing's pluggable look and feel is the feature that enables this.
JFrame
Content pane
list".
event-dispatching thread
command be changed?
The default action command string is the text shown inside the button. It can be
changed by calling
setActionCommand( )
.
ActionEvent
Yes, by calling
setActionCommand( )
.
11
.
What Swing component creates a check box? What event is generated when a check
box is selected or deselected?
JCheckBox
creates a check box. An
ItemEvent
is generated when a check box is se-
lected or deselected.