Exercises
26.4 Fill in the blanks in each of the following statements:
The
JTextFieldclass directly extends class __________.Containermethod __________ attaches a GUI component to a container.Method __________ is called when a mouse button is released (without moving the mouse).
The __________ class is used to create a group of
JRadioButtons.
26.5 Determine whether each statement is true or false. If false, explain why.
Only one layout manager can be used per
Container.GUI components can be added to a
Containerin any order in aBorderLayout.JRadioButtons provide a series of mutually exclusive options (i.e., only one can betrueat a time).GraphicsmethodsetFontis used to set the font for text fields.A
JListdisplays a scrollbar ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access