The Java Tutorials have been written for JDK 8. Examples and practices described in this page don't take advantage of improvements introduced in later releases and might use technology no longer available.
See Java Language Changes for a summary of updated language features in Java SE 9 and subsequent releases.
See JDK Release Notes for information about new features, enhancements, and removed or deprecated options for all JDK releases.
This lesson gives you a brief introduction to using Swing. After telling you about Swing, it walks you through how to compile and run a program that uses the Swing packages.
The following lesson, Learning Swing with the NetBeans IDE will build on these first steps to help you create several progressively more complex examples. For now, let's start with the basics.
This section gives you an overview of Swing.
This section gives you detailed instructions on where to obtain the latest JDK and how to create, compile and run a program that uses Swing components.
If you are interested in using the JavaFX package to create your UI, see the JavaFX Documentation. To deploy, see Java Platform, Standard Edition Deployment Guide.