Java Reference
In-Depth Information
12
GUI Components: Part 1
Do you think I can listen all day
to such stuff?
—Lewis Carroll
Even a minor event in the life of
a child is an event of that child's
world and thus a world event.
—Gaston Bachelard
You pays your money and you
takes your choice.
—
Punch
Objectives
In this chapter you'll:
Learn how to use the Nimbus
look-and-feel.
■
Build GUIs and handle events
generated by user
interactions with GUIs.
■
Understand the packages
containing GUI components,
event-handling classes and
interfaces.
■
Create and manipulate
buttons, labels, lists, text
fields and panels.
■
Handle mouse events and
keyboard events.
■
Use layout managers to
arrange GUI components.
■