O'Reilly logo

Just Java™ 2 by Peter van der Linden

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 20. GUI Basics and Event Handling

  • All About Event Handling

  • Tips for Slimming Down Handler Code

  • Summary of Event Handling

  • Exercises

  • Some Light Relief—The Mouse That Roared

All GUI libraries have four basic areas of functionality:

  • Creation of user interface “controls” or components, such as scroll bars, buttons, and labels.

  • Support for giving behavior to the controls by connecting GUI events (for example, clicking a button) to code that you write.

  • Support for grouping and arranging the controls on the screen.

  • Support for accessing window manager facilities, such as specifying which window has the input focus, reading JPEG and other image files, and printing.

Related graphics libraries also provide support for graphics ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required