![]() ![]() ![]() |
Start of Tutorial > Start of Trail > Start of Lesson |
Search
Feedback Form |
This section tells you how to compile and run a Swing application. The compilation instructions work for all Swing programs -- applets, as well as applications. If you're interested in Swing applets, you should also read Running Swing Applets. If you aren't yet interested in compiling and running Swing programs, you can skip directly to A Quick Tour of a Swing Application's Code, which guides you through the code for a simple application.The instructions in this section assume that you're already comfortable with writing and compiling programs that use the Java platform. If you aren't, please go to the Getting Started
trail. In particular, you'll need to successfully follow the instructions in A Closer Look at HelloWorld
before you attempt to compile and run any Swing programs.
We strongly recommend that you use the most recent release of the Java 2 platform available. Each release adds features and fixes bugs, and many improve performance as well. The instructions for compiling and running Swing programs depend on the release you're using:
- Java 2 Platform (for example, version 1.2, 1.3, or 1.4)
- JDK 1.1 + JFC/Swing Release
Both sets of instructions tell you how to run a simple program, called
SwingApplication
, whose GUI looks like this:. [PENDING: Screenshot needs to be updated.]
![]() ![]() ![]() |
Start of Tutorial > Start of Trail > Start of Lesson |
Search
Feedback Form |
Copyright 1995-2003 Sun Microsystems, Inc. All rights reserved.