Chapter 14. 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 Java’s elegant, cross-platform Nimbus look-and-feel.

• To build GUIs and handle events generated by user interactions with GUIs.

• To understand the packages containing GUI components, event-handling classes and interfaces.

• To create and manipulate buttons, labels, lists, text fields and panels.

• To handle mouse events and keyboard events.

• To use layout managers to arrange GUI components.

14.1 Introduction ...

Get Java™ for Programmers: Deitel Developer Series, Second 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.