O'Reilly logo

The Java™ Tutorial Fourth Edition: A Short Course on the Basics by Mark Hoeber, Tom Risser, Isaac Rabinovitch, Jacob Royal, Scott Hommel, Sharon Zakhour

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 15. Swing

HOW do you write a program in the Java programming language with a graphical user interface? The short answer is the Swing toolkit! This chapter gives you a brief overview of the graphical capabilities of the core Java platform with a special focus on Swing.

This chapter does not show how to implement these features. For a “how-to” on using the Swing toolkit, see Creating a GUI with JFC/Swing.[1]

A Brief Introduction to the Swing Package

This section gives you a brief introduction to the capabilities of the Java SE platform that pertain to developing programs with graphical user interfaces (GUIs). Next, it shows you a demo (sample code provided) that showcases many of these features.

The next section, Swing Features (page 470), discusses ...

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