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. Choose one of the following: Each option displays a wizard to help you quickly create the project or file. Once created, the new project or file is displayed in the Navigation pane.

See also:
User's Guide: Automatic code generation with wizards
User's Guide: Creating a new file


File|New Project

Displays the Project wizard, where you create the project file and give your project a title. You can also attach an author name to the project and a description.

See also
User's Guide: What is a project?
User's Guide: Creating an empty project


File|Open/Create

Displays the File Open/Create dialog box where you choose the name of an existing file or package to open. Simply opening a file does not automatically add it to your current project. To add a file to a project, click Add to Project in the Open/Create dialog box.

You can open multiple files and projects in different AppBrowser windows. A drop-down list of open windows is available on the View menu. To switch windows, select a different file or project from the drop-down list.

See also
User's Guide: Opening projects


File|Reopen

Displays a list of previously opened files or projects. Choose the one you want to open and click it or press Enter.


File|Close

Closes the active window.

Before closing any changed files, JBuilder prompts you to save any changes. If you choose File|Close when the Project Manager is the active window, you will close the active project and all its files.


File|Close All

Closes all projects and files open in JBuilder. Before closing any changed files, JBuilder prompts you to save any changes.

See also:
User's Guide: Closing multiple projects


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 the Save As dialog box where you can enter a new name for the file or save the existing file to a new directory. The necessary changes are automatically made inside the file to correspond with the new file name.


File|Save Project

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


File|Save All

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

See also:
User's Guide: Saving multiple projects


File|Remove From Project

Removes the selected file from the current project.

In the Navigation pane, select the file you want to remove, then choose File|Remove From Project. When you click OK, the selected file is removed from the current project. The file is not deleted from the drive.

If you have modified the file during this editing session, a prompt appears, asking whether to save your changes. If you have not modified the file, the file is removed without prompting you.

You can put the removed file back in the project with the Add to Project button at the top of the Navigation pane.

See also:
User's Guide: Removing a file from a project


File|Rename

Opens the Save As dialog box where you enter a new name for the file. The necessary changes are automatically made inside the file to correspond with the new file name.


File|Project Properties

Opens the Project Properties dialog box, where you specify various properties for the current project, including compiler options and path assignments.

See also:
User's Guide: Setting compiler options
User's Guide: Where are my files?


File|Printer Setup

Opens the Printer Setup dialog box, where you choose the current printer and set printer options.


File|Print

Prints the source in the Content pane or the UI design in the Design pane.


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.