New Object wizard

The New Object wizard creates a class file. To display this wizard, choose File|New, then click Class.

In order to create a class, you must have a project open. If there is no project open, JBuilder displays the Project wizard first, so you can create a project.

Wizard options

Package

The name of the package that this class belongs to.

Class Name

The name of the class. In order for the class to be visually designable, the class name must match the file name.

File Name

The file name. This field is read only, and is automatically generated from the package name and class name.

Extends

The name of the class that this class extends. The default is java.lang.Object.

If you want the class to be visually designable, the class must be a descendant of java.awt.Container. For example, it can extend Frame, Panel, DecoratedFrame, BevelPanel, Dialog, or Applet.

Style

Generate Header Comments
Generates placeholders for header comments including title, version, copyright, author, company, description. Enter the information in the Source pane after you click OK to create the class.

Public
Makes the class public. The class must be public in order to be visually designable.

Generate Default Constructor
Generates an explicit parameterless constructor.

Generate Main Function
Generates a main function.

See also:
User's Guide: Requirements for a class to be visually designable
User's Guide: Creating a class