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:
Application1.java
by default. This class contains the main()
method for the application. At runtime, this startup class creates an instance of the UI class for the application.
Frame1.java
by default, that extends JFrame
.
JPanel
, called contentPane
that uses BorderLayout
.
Step 2 of the wizard gives you the options for the frame container to contain a menu bar, a status bar, or a toolbar. You can also choose to include an About Box dialog box and to center the application UI on the screen at runtime.
To open the Application wizard, choose File|New, then double-click the Application icon.
The Application wizard consists of two pages:
For more information on packages, see the "Packages" topic in the "Creating and managing projects" in Building Applications with JBuilder.
//Title: Your Product Name //Version: //Copyright: Copyright (c) 1997 //Author: Your Name //Company: Your Company //Description: Your description
JFrame
.
Frame
class. To rename it, click in the Class field and type a new name.
JMenuBar
). This menu contains the following:
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.
JLabel
) to your UI.
AboutBox
to the application that extends JDialog
.