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.
In JBuilder Foundation, you can create these types of files:
- Project
- Application
- Applet
- Class
In JBuilder Professional and Enterprise, you can create these additional types of files:
- Servlet
- JavaServer Page
- Archive Builder
- Interface
- JavaBean
- Dialog
- Frame
- Panel
- Data Module
- Data Module Application
On the Enterprise page of the object gallery, you can create these additional types of files in JBuilder Enterprise:
- Sample IDL
- Empty EJB Group
- EJB Group From Descriptor
- EJB Entity Bean Modeler
- EJB Test Client
- CORBA Client Interface
- CORBA Server Interface
- HTML CORBA Client
- CORBA Server Application
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.
- Create a new frame, dialog, panel, data module, class, or HTML file in the current project or choose Project|Add Files/Packages to add an existing file.
- To save the file, choose File|Save.
- To compile the file, choose Project|Make or Project|Rebuild.
See also:
Building Applications with JBuilder: Creating a new file
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
Building Applications with JBuilder: Creating a new project with the Project wizard
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 project, select another project from the drop-down list on the project toolbar.
See also
Building Applications with JBuilder: Opening an existing project
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.
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 Files
Displays the Close Files 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.
File|Save All
Saves all open projects and files, using the current names.
See also:
Building Applications with JBuilder: Saving multiple projects
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.