Top
Interstage Studio User's Guide
FUJITSU Software

7.3.4 Creating a Form

To create a form, use the Form Wizard to create a source and then use the Graphical Editor or the Java editor to edit it. The methods for doing this are explained below.

7.3.4.1 Creating a Frame, Dialog, Panel

Forms can be classified into the following types. A form can be made up with any frame, dialog box, or panel class as a superclass. A superclass is assumed to be located above a classpath.

Select [Java] > [GUI] > [Form] from the [New] wizard and then use the Wizard to create a form.

Item

Description

Frame

This is a Java Form with java.awt.Frame/javax.swing.JFrame and its extended class as a superclass.
This form contains frames of ordinary windows made up of elements such as pull-down menus and title bars.

Dialog

This is a Java Form with java.awt.Dialog/javax.swing.JDialog and its extended class as a superclass.
This form is similar to a frame in appearance but it has functions that differ from a frame, including the fact that it can be modal and that title bar icons cannot be specified.

Panel

This is a Java Form with java.awt.Container/java.awt.Window/java.awt.Panel/javax.swing.JPanel and its extended class as a superclass.
A superclass that is handled by another class extended form will not be a panel.

Point

To extend a specific class, including a class created by the user, select a frame, dialog, or panel.

Note

When a frame, dialog, or panel is being built, an error message may be displayed stating that an abstract method has not been listed. If this happens, start an editor such as the Java editor and then describe the abstract method that was displayed in the error message.

7.3.4.2 Creating a Screen Control Panel, Screen Control Tabbed Panel, Window Control, and Object Control

This section describes how to create a new Screen Control Panel, Screen Control Tabbed Panel, Window Control, and Object Control.

Select [Java] > [GUI] > [Form] from the [New] wizard and then use the Wizard for creating.

Each Wizard and the points of difference in editing are shown below.

Screen Control Panel

Screen Control Tabbed Panel

Object Control

Window Control

Superclass

JFLCardPanel

JFCTabbedPanel

JFCObjectLoaderManager

JFCWindowLoaderManager

Superclass of object being controlled

JFLEntryPanel

JFLEntryPanel

java.lang.Object

JFCFrame or JFCDialog

Name on window for editing object being controlled

Screen name

Screen name

Object name

Window name

Edit start comment

//@@JFLCardPanel createPanels Method start

//@@JFCTabbedPanel createPanels Method start

//@@JFCObjectLoaderManager createObjects Method start

//@@JFCWindowLoaderManager createWindows Method start

Edit end comment

//@@JFLCardPanel createPanels Method end

//@@JFCTabbedPanel createPanels Method end

//@@JFCObjectLoaderManager createObjects Method end

//@@JFCWindowLoaderManager createWindows Method end

Note

Unless otherwise noted, the package name for each class is com.fujitsu.jbk.gui.ctrl. The part between the edit start comment and the edit end comment will be the target of editing by the editing tool.

The Object Control Wizard generates a createObjects method so that an add method will be invoked from the constructor. Note that a createObjects method will not be generated if creation is performed by specifying an existing resource.

In Object Control editing, there is no function for creating or editing an object on the side being controlled.

In Window Control editing, if a dialog has been specified as a class on the side being controlled, rather than specifying the timing of generation or deletion, specify modal or modeless. If a frame has been specified, specify the timing of generation and the timing of deletion in the same way as for other classes. In Window Control editing, if resources are selected from project resources, they will be automatically classified as dialogs and frames.

7.3.4.3 Java Form Information

Item

Description

Source Folder

Select the source folder to store the Java Form source.

Package

Enter the package name if the package name of the class to be generated is to be specified.