11. GUI Components: Part 1

Objectives

In this chapter you’ll learn:

• The design principles of graphical user interfaces (GUIs).

• 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

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

Guess if you can, choose if you dare.

Get Java™ for Programmers: Deitel now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.