All new files in the IDE are created with templates. Templates provide:
For example, if your version of the IDE supports applets, its JApplet template specifies an applet viewer. When you run the applet in the IDE, the class runs in that applet viewer.
For Java files, a package statement is also generated. The generated package statement is based on the directory hierarchy in the mounted filesystem. When you copy and paste Java files to different packages, the package statement is adjusted accordingly.
To create a new file:
The New wizard appears and enables you to select from templates in several categories.
The file appears in the Source Editor. If you create a Java form from a 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 Next to access further options. For example, when you use the Class template, the wizard has panes 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. Choose New from the contextual menu. Navigate 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 Templates |