11. 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

Guess if you can, choose if you dare.

Pierre Corneille

Objectives

In this chapter you will 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 ...

Get Java™ How to Program, Seventh 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.