Creating a New File

See Also

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:

  1. In the Filesystems window, right-click the directory where you want to place the file and choose New. Then choose one of the templates from the New submenu.

    If you choose All Templates from the submenu, the New wizard appears and enables you to select from templates in several categories. Select a template from one of the categories and click Next.

  2. Type a name for the file.
  3. Click Finish.

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.

Note You can also create new files by choosing File and choose New. However, if the Filesystems node is selected when you choose File and choose New, the wizard prompts you to mount a filesystem. If you already have a filesystem mounted and want to create a file there, exit the wizard. Then click a different node in filesystems. When you open the wizard again, you the wizard will enable you choose what kind of file that you want to create.
See Also
Filesystems Window
Creating a Group of Files
Opening a File Not in a Mounted Filesystem
Mounting a Filesystem
Node Icons in the Filesystems Window
Creating a Template

Legal Notices