Creating a new form


Use the New From Template command to create a new form from template and open it in the Form Editor.

Forte for Java supports nine basic form types from both the AWT and the newer JFC components. The table below lists them.

Table 7: Basic form types supported by Forte for Java
Name
Description
Frame
AWT Frame (top-level application window).
Dialog
AWT Dialog (modal or non-modal window for user feedback).
Applet
AWT Applet (embeddable program run by a web browser or other applet viewer).
Panel
AWT Panel (container for holding parts of an interface--can in turn be used in any other container, such as a Frame, Panel, Applet, or Dialog).
JFrame
Swing JFrame (top-level application window).
JDialog
Swing JDialog (modal or non-modal window for user feedback).
JApplet
Swing JApplet (embeddable program run by a web browser or other applet viewer).
JPanel
Swing JPanel (lightweight container for holding parts of an interface--within any container, such as a JFrame, JPanel, JApplet, or JDialog).
JInternalFrame
Swing JInternalFrame (lightweight object with many of the features of a native Frame, used as a "window within a window" within a JDesktopPane).

Note that the table lists only the basic types which differ both in design-time look and in the code generated for the form's class. Customized forms (for example, a dialog box with OK and Cancel buttons) and customized user classes (derived from one of the container classes above) can also be created and then saved as new templates. See Creating your own templates.


Contents Prev Next Index