All new files in the IDE are created with templates. In addition to providing basic code, templates also include properties for the created file, such as the type of compilation, execution, and debugging services. For example, if you create an applet with the JApplet template, an applet viewer is designated to be used for the class when you run the class in the IDE.
To create a new file:
The New wizard appears and enables you to choose from templates in several categories.
The file appears in the Source Editor. If you create a form from template, the Form Editor opens.
If the Next button is activated on the page where you enter the name and location of the file, you can click it to access further options. For example, when you use the Class template, the wizard has pages for customizing superclass and interface information, overriding inherited methods, and adding fields.
![]() |
You can also create a new file by right-clicking a package node in the Explorer, choosing New, and navigating through the submenus to pick the type of file. |
See also | |
---|---|
The Explorer
Opening a File in the IDE Creating a Group of Files Opening a File Not in a Mounted Filesystem Mounting a Filesystem Node Icons in the Explorer |