java.lang.Object
com.jgoodies.forms.tutorial.building.DefaultFormBuilderExample
- public final class DefaultFormBuilderExample
- extends java.lang.Object
Uses the FormLayout and the DefaultFormBuilder.
Columns are specified before the panel is filled with components,
rows are added dynamically. The builder is used to hold a cursor,
to add rows dynamically, and to fill components.
The builder's convenience methods are used to add labels and separators.
This panel building style is recommended unless you have a more
powerful builder or don't want to add rows dynamically.
See the DynamicRowsExample for an implementation that specifies
rows before the panel is filled with components.
- Version:
- $Revision: 1.8 $
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
identifierField
private javax.swing.JTextField identifierField
ptiField
private javax.swing.JTextField ptiField
powerField
private javax.swing.JTextField powerField
sField
private javax.swing.JTextField sField
daField
private javax.swing.JTextField daField
diField
private javax.swing.JTextField diField
da2Field
private javax.swing.JTextField da2Field
di2Field
private javax.swing.JTextField di2Field
rField
private javax.swing.JTextField rField
dField
private javax.swing.JTextField dField
locationCombo
private javax.swing.JComboBox locationCombo
kFactorField
private javax.swing.JTextField kFactorField
DefaultFormBuilderExample
public DefaultFormBuilderExample()
main
public static void main(java.lang.String[] args)
initComponents
private void initComponents()
- Creates and intializes the UI components.
createLocationComboBox
private javax.swing.JComboBox createLocationComboBox()
- Creates and returns a combo box for the locations.
buildPanel
public javax.swing.JComponent buildPanel()
- Builds the flange editor panel.
Columns are specified before components are added to the form,
rows are added dynamically using the
DefaultFormBuilder.
The builder combines a step that is done again and again:
add a label, proceed to the next data column and add a component.