Creating a New File

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:

  1. Choose File and choose New.

    The New wizard appears and enables you to choose from templates in several categories.

  2. Expand a category and select one of the templates, and click Next.
  3. Enter a name for the file and select the directory where you want to place the file from the tree view.
  4. Click Finish.

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.

Tip 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

Legal Notices