Download the JDK
Search the Tutorials
Hide the TOC
Trail: Creating a GUI with JFC/Swing
Lesson: Learning Swing by Example
Learning Swing by Example
Example One: Your First Swing Program
Example Two: `SwingApplication`
Example Three: `CelsiusConverter`
Example Four: An Improved `CelsiusConverter`
Example Five: `LunarPhases`
Example Six: `VoteDialog`
Summary
Home Page > Creating a GUI with JFC/Swing > Learning Swing by Example
« Previous • Trail • Next »
Summary

> This lesson glossed over many details and left some things unexplained, but now you should have an understanding of what you can build with Swing components. Also, you should have a general understanding of the following:
> - How to set up the containment hierarchy of each Swing component. To add a component to a container, you use some form of the add method.
> - How to use many standard GUI components, such as buttons, labels, combo boxes, and radio buttons, which you combine to create your program’s GUI.
> - How to change the layout of components by using layout managers.
> - How events are used in Swing programs. Recall that the event-handling mechanism is based on the AWT event-handling model, in which you register event listeners on objects such as components that generate events.

« Previous • Trail • Next »
Previous page: Example Six: `VoteDialog`
Next page: Questions and Exercises: Learning Swing by Example