CHAPTER 55 — Introduction to GUI Programming

Classic programmed-learning exercises, refreshed for modern Java and presented in the current MrStyner.com portfolio style.

Modern Java noteThis archive has been refreshed for Java 25 LTS. Core language concepts remain useful, while outdated setup instructions and browser-era Java are labeled or replaced. Java 26 is the current feature release; Java 25 is used here as the stable teaching baseline.
go to home page   go to next page

created: 3/24/99 (AWT), revised: 01/06/02 (Swing); small edits: 02/03/04, 02/12/05, 07/17/06, 09/20/08

CHAPTER 55 — Introduction to GUI Programming

This chapter introduces Graphical User Interface (GUI) programming. Users interact with modern application programs using graphical components such as windows, buttons, text boxes, and menus. It would be difficult to write a GUI application from scratch. Luckily, most of the work has been done for you in a set of classes called Swing.

Chapter Topics:

  • Event-driven programming
  • Graphical user interfaces
  • The three parts of a GUI
  • GUI components
  • Containers
  • The Abstract Windowing Toolkit (AWT)
  • How the AWT relates to Swing
  • Swing class hierarchy

Swing is a large package. These notes only discuss the basics, but this is enough for you to write some interesting programs. For additional information go to the Sun documentation.

QUESTION 1:

How do you think "GUI" is pronounced?