public class FormLayout extends DelegatingLayoutManager
It has the standard 2-column form layout, a column of labels and a column of controls, with the option of adding rows that span both columns.
This implementation uses GroupLayout, which has a couple of nice properties: the components are vertically aligned along their baseline, which makes the left-to-right flow look better, and they are spaced according to the look-and-feel defaults, which makes the form look more like a native form.
Field labels should be added, followed by fields, in label, field, label, field, order.
Copyright 2007-2008 Partner Software, Inc.
| Constructor and Description |
|---|
FormLayout(java.awt.Container panel) |
| Modifier and Type | Method and Description |
|---|---|
void |
addLayoutComponent(java.awt.Component comp,
java.lang.Object constraints) |
void |
addLayoutComponent(java.lang.String name,
java.awt.Component comp) |
java.awt.Container |
getPanel() |
getDelegate, getLayoutAlignmentX, getLayoutAlignmentY, invalidateLayout, layoutContainer, maximumLayoutSize, minimumLayoutSize, preferredLayoutSize, removeLayoutComponent, setDelegate, toStringpublic void addLayoutComponent(java.awt.Component comp,
java.lang.Object constraints)
addLayoutComponent in interface java.awt.LayoutManager2addLayoutComponent in class DelegatingLayoutManagerpublic void addLayoutComponent(java.lang.String name,
java.awt.Component comp)
addLayoutComponent in interface java.awt.LayoutManageraddLayoutComponent in class DelegatingLayoutManagerpublic java.awt.Container getPanel()