JDeveloper provides the following standard layout managers from the Java
AWT: BorderLayout
, FlowLayout
, GridLayout
, CardLayout
, and GridBagLayout
. For Swing,
BoxLayout2
and OverLayout2
, have been included.
JDeveloper also provides three custom layouts:
XYLayout
that keeps components you put in a container at
their original size and location (x,y coordinates).PaneLayout
, used by the SplitPanel
control.VerticalFlowLayout
, which is very similar to
FlowLayout
except that it arranges the components vertically
instead of horizontally.
You can create custom layouts of your own, or experiment with other
layouts like the ones in the sun.awt
classes, or
third-party layout managers, many of which are public domain on the Web.
If you want to use a custom layout in the Java Visual Editor, you may
have to provide a Java helper class file to help the Java Visual Editor
use the layout.
JDeveloper's layout managers are explained in detail in the following sections.
Most of your UI designs will use a combination of layouts by nesting different layout panels within each other.
Working with Nested Containers and Layouts
Copyright © 1997, 2004, Oracle. All rights reserved.