Category: Starting Swing Applications

First Swing Component

First Swing Component

In your source code, you include the Swing package by adding an import statement: import javax.swing.*; Now you’re ready to replace your Button objects with JButton objects. We’ll also set up the application to...

Simple AWT Application

Simple AWT Application

You probably have some programs lying around that use regular AWT buttons that you’d love to replace with image buttons, but you don’t have the time or, honestly, the necessity to produce your own...

Upgrading Your AWT Programs

Upgrading Your AWT Programs

One of the benefits of object-oriented languages is that you can upgrade pieces of a program without rewriting the rest. While practice is never as simple as theory, with Swing it’s close. You can...