Java Reference
In-Depth Information
13.
Pressing the Enter key while typing in a TextArea generates which event?
a. ActionEvent
b. TextEvent
c. KeyEvent
d. All of the above
e. Both a and b
f. Both b and c
g. None of the above
14.
True or False: The JScrollPane class can be used to add scroll bars to any Swing
component.
15.
What does it mean for a component to have focus?
16.
Clicking once on an item in a List generates what event? What about clicking once on
an item in a JList?
17.
Double-clicking on an item in a List generates what event? What about double-clicking
on an item in a JList?
18.
Selecting an item in a Choice generates what event?
a. ActionEvent
b. TextEvent
c. KeyEvent
d. ItemEvent
e. Both a and d
19.
Selecting an item in a JComboBox generates which event?
a. ActionEvent
b. TextEvent
c. KeyEvent
d. ItemEvent
e. Both a and d
20.
List the three components that compose a menu of a top-level window (such as Frame
or JFrame).
21.
True or False: A menu can be added to a menu bar.
22.
True or False: A menu can be added to another menu.
Search WWH ::




Custom Search