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

Quick Search    Search Deep

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

java.lang.Object
  extended bycom.jgoodies.forms.tutorial.building.RowCounterExample

public final class RowCounterExample
extends java.lang.Object

Demonstrates the FormLayout with a PanelBuilder. Columns and rows are specified before the panel is filled with components. Unlike the PlainExample this class uses a local variable to keep track of the current row. The advantage over fixed numbers is, that it's easier to insert new rows later.

This panel building style is simple and works quite well. However, you may consider using a more sophisticated form builder to fill the panel and/or add rows dynamically; see the DynamicRowsExample for this alternative.

Version:
$Revision: 1.9 $

Field Summary
private  javax.swing.JComboBox iceClassComboBox
           
private  javax.swing.JTextField identifierField
           
private  javax.swing.JTextArea inspectionCommentArea
           
private  javax.swing.JTextArea machineryCommentArea
           
private  javax.swing.JComboBox materialComboBox
           
private  javax.swing.JTextField powerField
           
private  javax.swing.JTextField speedField
           
 
Constructor Summary
RowCounterExample()
           
 
Method Summary
 javax.swing.JComponent buildPanel()
          Builds the content pane.
private  javax.swing.JComboBox createIceClassComboBox()
          Builds and returns a combo box for ice classes.
private  javax.swing.JComboBox createMaterialComboBox()
          Builds and returns a combo box for materials.
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

powerField

private javax.swing.JTextField powerField

speedField

private javax.swing.JTextField speedField

materialComboBox

private javax.swing.JComboBox materialComboBox

iceClassComboBox

private javax.swing.JComboBox iceClassComboBox

machineryCommentArea

private javax.swing.JTextArea machineryCommentArea

inspectionCommentArea

private javax.swing.JTextArea inspectionCommentArea
Constructor Detail

RowCounterExample

public RowCounterExample()
Method Detail

main

public static void main(java.lang.String[] args)

initComponents

private void initComponents()
Creates and intializes the UI components.


createMaterialComboBox

private javax.swing.JComboBox createMaterialComboBox()
Builds and returns a combo box for materials.


createIceClassComboBox

private javax.swing.JComboBox createIceClassComboBox()
Builds and returns a combo box for ice classes.


buildPanel

public javax.swing.JComponent buildPanel()
Builds the content pane.