Opening a File

See Also

You can use Project Explorer to open the files in your Java project. Each file is associated with a source editor. If the file supports graphical editing, then it is also associated with a graphical editor.

To open a file in its source editor

To open a file in its graphical editor

Tip   Double-clicking the name of the file opens it in the default editor for that file type. For example, double-clicking a WFC form opens it in the Forms Designer.

For information about adding files to your project, see Adding a File.

Miscellaneous Files

To open a file that is not part of the open project, use the Open File command on the File menu. Project Explorer lists the file under the Miscellaneous Files node. Once a nonproject file is listed under Miscellaneous Files, you can simply double-click it in Project Explorer to reopen it.

Note that if you remove a file from the project, it still resides in the project directory structure. However, you must still use the Open File command to open the file, since the file no longer belongs to the project. For information about removing files, see Removing a File or Folder.