Exercises
12.4 Fill in the blanks in each of the following statements:
a) The JTextField
class directly extends class _______.
b) Container
method ________ attaches a GUI component to a container.
c) Method ________ is called when a mouse button is released (without moving the mouse).
d) The ________ class is used to create a group of JRadioButton
s.
12.5 Determine whether each statement is true or false. If false, explain why.
a) Only one layout manager can be used per Container
.
b) GUI components can be added to a Container
in any order in a BorderLayout
.
c) JRadioButton
s provide a series of mutually exclusive options (i.e., only one can be true
at a time).
d) Graphics
method setFont
is used to set the font for text fields.
e) A JList
displays ...
Get Java™ How To Program (Early Objects), Tenth Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.