Project pane

The project pane is the top left pane of the AppBrowser. The project pane shows the current open project and all the nodes it contains.

You can view the contents of a node in a project in one of two ways:

To open a project, choose File|Open Project and browse to the project you want to open. To create a new project, choose File|New Project and use the Project wizard to create the project.

If you open more than one project, only one active project will be visible. To activate another open project, click the project list drop-down arrow on the project pane toolbar to display a drop-down list of open projects. The project you selected appears and the previous project is no longer visible, but you can access it again from the project drop-down list. You may also access other open projects and files from the Window menu. You can reopen any previously opened project or file by selecting File|Reopen: projects are listed in the upper part of the pop-up, files are listed in the lower part.

You can add a file or class to a project in one of three ways:

If you want to add folders to your project, note that project folders are for organizational purposes only and do not correspond to directories on disk. Right-click in the project pane and choose New Folder to make a new organizational folder in your project.

There are two types of project files: .jpr and .jpx. The .jpr file type is suitable for most purposes. The .jpx file type is an XML file that better supports team development features and version control (available in JBuilder Enterprise) in addition to the usual project file functions. To change the extension of the project file, right-click the project file in the project pane and select Rename. Change the file extension to the other legal project file extension and click OK or press Enter.

You can search for a particular file or package in the project by moving focus to the project tree and beginning to type. For more information, see searching trees.

To remove a file or class from a project, click the Remove From Project icon on the project toolbar. You can also right-click the node you want to remove and select Remove From Project from the pop-up menu that appears.

To close any number of open files, right-click a file tab at the top of the content pane and choose Close Files. Check the boxes of the files you want to close and click OK or press Enter.

Icons on the project toolbar

The following table describes the functions of the icons on the project toolbar:

Icon Description What it does
Add To Project Adds a file to the project currently open in the project pane. This option does not affect your directory structure or the file's physical location.
Remove From Project Removes the selected node from the project. This option does not affect your directory structure or the file's physical location.
Close Project Closes the selected project, removing it from the project pane.
Refresh Refreshes the project pane's display of files.
Project list Displays a drop-down list of open projects.

Project pane pop-up menu

Right-click a node in the project pane to display the project pane pop-up menu. The commands on this menu vary depending on the type of node you selected.

See also