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. You can create any of the following:
- JavaBean
- Application
- Applet
- Project
- Frame
- Dialog
- Panel
- Data module
- Class
- HTML file
- Servlet
- Enterprise JavaBean
Each icon 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.
- To add a new frame, dialog, panel, data module, class, or HTML file to the current project, click the Add to Project button in the Navigation pane after you create the file.
- To save the file, choose File|Save.
- To compile the file, choose Build|Make or Build|Rebuild.
See also:
Getting Started with JBuilder: Creating a new file
File|New Project
Displays the Project Wizard, where you create a JBuilder project (a .jpr file). You can optionally give your project a title and attach an author name and description to the project.
See also
Getting Started with JBuilder: What is a project?
File|Open/Create
Displays the File Open/Create dialog box where you choose the name of an existing file or package to open.
- Opening a file displays the file and its structure in the Opened Files list. File contents are displayed in the Content pane and can be edited.
- Opening a project displays the project and all files in the project. When you click a project node (.jpr file) in the Navigation pane, the structure of that file displays in the Structure pane, and the source for that file is displayed in the Content pane, ready for editing.
- Opening a package adds the package to the Opened Files list.
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. The View|Windows command displays a drop-down list of currently open windows. To switch windows, select a different window from the drop-down list.
See also
Getting Started with JBuilder: Opening an existing project
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:
Getting Started with JBuilder: 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:
Getting Started with JBuilder: 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:
Getting Started with JBuilder: 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 set project properties.
See also:
Getting Started with JBuilder: Setting project properties
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.
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.