A panel is a UI container that groups components such as
buttons, checkboxes, and text fields. A panel has a border and may have
a title if the border selected is a TitledBorder
.
Typically, a panel is embedded within a dialog box or frame.
The New Panel dialog adds a new class to the opened project that extends
a panel you select. It creates a default constructor, and a
jbInit()
method in which JDeveloper puts property setters and
other initialization code used by the Java Visual Editor.
To create a panel:
Choose File New to locate the New Panel dialog in the New Gallery.
In the Categories list, expand Client Tier and select Swing/AWT.
In the Items list, select
Panel and click OK to launch the New Panel
dialog.
You can choose from any of the base classes installed with
JDeveloper. If you prefer, you can search for another class that
isn't from an installed package using the browse button. By default,
the selection is limited to the panel container provided with the
core J2SE (Java 2, Standard Edition) and Swing classes.
The panel is displayed as a .java
source file in the
Navigator.
To view the a panel in JDeveloper:
Right-click the file in the Navigator and choose Open and click the Design tab to use the interactive UI design tools, such as the Component Palette and the Property Inspector.
Right-click the file in the Navigator and choose Open to begin customizing the source code directly.
Copyright © 1997, 2004, Oracle. All rights reserved.