Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.jgoodies.forms.tutorial.building
Class DefaultFormBuilderExample  view DefaultFormBuilderExample download DefaultFormBuilderExample.java

java.lang.Object
  extended bycom.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 $

Field Summary
private  javax.swing.JTextField da2Field
           
private  javax.swing.JTextField daField
           
private  javax.swing.JTextField dField
           
private  javax.swing.JTextField di2Field
           
private  javax.swing.JTextField diField
           
private  javax.swing.JTextField identifierField
           
private  javax.swing.JTextField kFactorField
           
private  javax.swing.JComboBox locationCombo
           
private  javax.swing.JTextField powerField
           
private  javax.swing.JTextField ptiField
           
private  javax.swing.JTextField rField
           
private  javax.swing.JTextField sField
           
 
Constructor Summary
DefaultFormBuilderExample()
           
 
Method Summary
 javax.swing.JComponent buildPanel()
          Builds the flange editor panel.
private  javax.swing.JComboBox createLocationComboBox()
          Creates and returns a combo box for the locations.
private  void initComponents()
          Creates and intializes the UI components.
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

DefaultFormBuilderExample

public DefaultFormBuilderExample()
Method Detail

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.