
EXERCISES,PROBLEMS, AND PROJECTS
12.18 Exercises,Problems,and Projects 919
■
A JComboBox implements a drop-down list. The user can select
only one item from the list. A JComboBox fires an ItemEvent, so the
event handler must implement the ItemListener interface.
■
Adapter classes, which implement an interface and provide empty
bodies for each method, are useful when only one of multiple com-
ponent actions is processed.
■
MouseAdapter and MouseMotionAdapter are adapter classes for the
MouseListener and MouseMotionListener interfaces, respectively.
■
The GridLayout layout manager arranges components into equally
sized cells in rows and columns.
■
A BorderLa ...