Java Reference
In-Depth Information
CHAPTER
17
GUI C
OMPONENTS
Objectives
To create graphical user interfaces with various user-interface
components (§§17.2-17.8).
■
To create listeners for
JCheckBox
,
JRadioButton
, and
JTextField
(§17.2).
■
To enter multiple-line texts using
JTextArea
(§17.3).
■
To select a single item using
JComboBox
(§17.4).
■
To select a single or multiple items using
JList
(§17.5).
■
To select a range of values using
JScrollBar
(§17.6).
■
To select a range of values using
JSlider
and explore differences
between
JScrollBar
and
JSlider
(§17.7).
■
To display multiple windows in an application (§17.8).
■