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:
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: