Creating an Application Based on the Swing Application Framework
See Also
- The Swing Application Framework (JSR 296) is no longer developed and will not become part of the official Java Development Kit as was originally planned. It is still included in the IDE and you can use this library as it is, but no further development is expected. If you are looking for a Swing-based application framework, consider using the NetBeans Platform.
To best take advantage of the IDE's support for the Swing Application
Framework, you need to use the Java Desktop Application project template.
To create a new Swing Application Framework application:
- Choose File > New Project.
- Select the Java category and select the Java Desktop Application template.
Click Next.
- In the Name and Location
page of the wizard, fill in the necessary fields.
If you select the Basic Application shell, you can click Finish to create the
project on your computer and open the project in the Projects window and the
Files window.
If you select the Database Application shell, click Next to specify the
database table and the configuration of the master/detail view of the database.
The generated files include:
- An application class that includes the main() method,
the framework's startup method, and some other utility methods.
- A view class that encapsulates a JFrame and serves as the
application's main window. This class is editable in the GUI Builder.
- A sample About window for the application.
- .properties files to hold the application's resources.
-
See Also
- Working With the Swing Application Framework
- About Actions in the Swing Application Framework
- About Resources in the Swing Application Framework
- About Java GUIs
- Working With Beans Binding
- Working With Desktop Database Applications
Legal Notices