Working with layouts
A layout manager is a special Java class that manages the positions and sizes of components in a container (Frame, Panel, or any other visual component that can contain other components).
The Form Editor in Forte for Java has advanced support for layout managers. In addition to absolute positioning, complex forms based on Flow Layout, Border Layout, Card Layout, Grid Layout, GridBag Layout or Swing's Box Layout are supported. (See Standard layout managers for descriptions of these layout managers.)
Various containers come with different predefined layout managers:
- Frame, JFrame, Dialog, JDialog, and JInternalFrame have the Border Layout by default.
- Panel and JPanel have Flow Layout as the default layout.
Layout managers do not apply to all containers. For example, ScrollPane, JScrollPane, JTabbedPane, JLayeredPane/JDesktopPane, and JSplitPane have their own special layouts which cannot be changed.
Contents | Prev | Next | Index |