Swing

Although web development is often the preferred choice for new software, desktop applications continue to play an important role in many organizations. Swing has sometimes been described as difficult to learn, but in fact it can be a very helpful and productive user interface (UI) framework. In reality, UI ("front end") development is always challenging regardless of the framework used, and Swing is no exception to the rule.

These tutorials cover various topics that vary in complexity and are intended to be helpful in areas commonly encountered by Swing developers, and you may find one useful if you've encountered a problem or just want to learn how to develop a user interface using Swing.

Overview

The following topics are covered in the tutorials:

  • Getting Started: Provides an introduction to desktop application programming with Swing by creating a trivial user interface.
  • Event Dispatch Thread: Describes the important role the Event Dispatch Thread (EDT) plays in Swing applications.
  • Event Handling Basics: An introduction to the topic of event handling, specifically how to listen for a user request to close a window.
  • Swing Architecture: Details an important aspect of Swing's architecture, specifically the respective roles of heavyweight and lightweight components.
  • AWT Components: Brief overview of the some of the AWT components that are an important part of the Swing component hierarchy.