Application wizard

The Application wizard creates an application consisting of two files and adds them to the existing project. If a project isn't open, JBuilder runs the Project wizard first before running the Application wizard.

The Application wizard creates the following files:

To open the Application wizard, choose File|New, then double-click the Application icon.

The Application wizard consists of two pages:


Step 1 of 2

Application class details

The wizard displays default names for the package and application class file.

Package

Displays the package name derived from the project file. To assign a different package name to the application file, click in the Package field and type in a new name.

For more information on packages, see the "Packages" topic in the "Creating and managing projects" in Building Applications with JBuilder.

Class

Displays the default name assigned to the application class. To rename it, click in the Class field and type in a new name.

Generate header comments

Uses information from the project file as header comments at the top of the application class file. This is the information entered in the Project wizard when creating the project file.
//Title:        Your Product Name
//Version:    
//Copyright:    Copyright (c) 1997
//Author:       Your Name
//Company:      Your Company
//Description:  Your description


Step 2 of 2

This page controls the generation of the UI class for your application. This class is a subclass of JFrame.

Frame class details

Class

Displays the default name assigned to the Frame class. To rename it, click in the Class field and type a new name.

Title

Displays default text for the frame title bar. To change the title, click on the Title field and type new text.

Generate Menu Bar

Adds a Swing main menu to the frame (JMenuBar). This menu contains the following:

Generate Toolbar

Adds a Swing toolbar (JToolbar) to your UI with three default buttons. It also adds the .gif images for these buttons to your project. You can remove these images from the project and add new ones using the Add To Project and Remove From Project buttons on project toolbar above the project pane. Use the Inspector in the UI designer to add more buttons and to specify which button to use on each button. You must add the images you want to use for the toolbar buttons to your project before deploying your project.

Generate Status Bar

Adds status bar (JLabel) to your UI.

Generate About Dialog

Adds an AboutBox to the application that extends JDialog.

Center Frame On Screen

Centers the application on the screen at runtime.