Chapter 19. GUI Basics and Event-Handling

GUI Basics and Event-Handling

All GUI libraries have four basic areas of functionality:

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

  • Support for giving behavior to the controls by tying GUI events (like clicking on a button) to code that you write.

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

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

Related ...

Get Just Java™ 2, Fifth 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.