Self-Review Exercises

12.1 Fill in the blanks in each of the following statements:

a) Method ______ is called when the mouse is moved with no buttons pressed and an event listener is registered to handle the event.

b) Text that cannot be modified by the user is called ______ text.

c) A(n) ______ arranges GUI components in a Container.

d) The add method for attaching GUI components is a method of class ______.

e) GUI is an acronym for ______.

f) Method ______ is used to specify the layout manager for a container.

g) A mouseDragged method call is preceded by a(n) ______ method call and followed by a(n) ______ method call.

h) Class ______ contains methods that display message dialogs and input dialogs.

i) An input dialog capable of receiving input ...

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.