O'Reilly logo

Java™ How to Program, Seventh Edition by P. J. Deitel - Deitel & Associates, Inc., H. M. Deitel - Deitel & Associates, Inc.

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Exercises

11.4Fill in the blanks in each of the following statements:
  1. The JTextField class directly extends class ________.

  2. Container method ________ attaches a GUI component to a container.

  3. Method ________ is called when a mouse button is released (without moving the mouse).

  4. The ________ class is used to create a group of JRadioButtons.

11.5Determine whether each statement is true or false. If false, explain why.
  1. Only one layout manager can be used per Container.

  2. GUI components can be added to a Container in any order in a BorderLayout.

  3. JRadioButtons provide a series of mutually exclusive options (i.e., only one can be true at a time).

  4. Graphics method setFont is used to set the font for text fields.

  5. A JList displays a scrollbar if there are more items ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required