File menu

The File menu contains commands for creating and opening projects, creating and opening files, closing and saving files and projects, printing files, and exiting JBuilder.

Choose one of the following commands for more information.



File|New

Opens the New page of the object gallery where you choose the type of file to create.

Each icon in the object gallery displays a wizard to help you quickly create the project or file. Once created, the new project or file is displayed in the project pane.

See also



File|New Project

Displays the Project wizard, where you create a JBuilder project file: .jpr or .jpx (XML-formatted). You can optionally give your project a title and attach an author name and description to the project.

See also




File|New Class

Creates a new Java source file within a project using the Class wizard.



File|Open Project

Displays the Open dialog box where you browse and choose the name of an existing project to open. Only project files are visible in the Open dialog box. Opening a project displays the project and its files in the project pane.

You can open multiple files and projects in the same AppBrowser, but only one project is current. To switch to another open file, click its tab in the content pane. To switch to another open project, select another project from the drop-down list on the project toolbar or from the Window menu.

See also



File|Open File

Displays the Open dialog box where you can browse to select the file you want to open.

Opening a file or package displays it in the structure pane and its contents in the content pane.

Note: Opening a file or package does not add it to the current project. Use the Add Files/Packages button on the project toolbar to add it to your project.



File|Reopen

Displays a list of previously opened files or projects. Select the one you want to open from the list.



Compare Files

This is a feature of JBuilder Enterprise.

Lets you compare two files next to each other or in diff mode.

Uses two initial dialog boxes:

  1. Select Old File dialog box: select the file you want to compare from.
  2. Select New File dialog box: select the file you want to compare to.

Once you've selected the files to compare, the Compare Files dialog box opens. Right-click a file in Source view to reload or save it.



File|Close Projects

Displays the Close Projects dialog box. Select any projects you want to close and click OK. Before closing any changed files, JBuilder prompts you to save any changes.



File|Close

Closes the file currently selected in the content pane.
Before closing any changed files, JBuilder prompts you to save any changes.



File|Close All Except

Closes all the files except the file currently selected in the content pane.
Before closing any changed files, JBuilder prompts you to save any changes.



File|Close ...

Displays the Close dialog box. Select any files you want to close and click OK.
Before closing any changed files, JBuilder prompts you to save any changes.



File|Revert

Reverts to previously saved version of the file.



File|Save Project

Saves the current project and all files in that project to their existing names.



File|Save Project As

Displays the Save dialog box where you can save the current project and all files in that project. You may specify a new name in the File Name field and browse to a new location for the project.



File|Save

Stores changes made to the active file using the current name. The date/time stamp indicates the time of last edit, not the time of last save.



File|Save As

Opens a Save As dialog box where you can enter a new name for the file or save the existing file to a new directory. You can also set options to remove, delete, or save the file to the project.



File|Save All

Saves all open projects and files, using the current names.

See also



File|Rename

Opens the Rename dialog box where you enter a new name for the file.



File|Page Layout

Opens the Page Layout dialog box where printing options can be set for the Java class or source file.



File|Print

Prints the selected source file.



File|Exit

Closes any open projects and files and then closes JBuilder. If you exit JBuilder before saving your changes, JBuilder prompts you to save them. It is recommended that you use File|Save All before exiting.