java.lang.Object
com.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 $
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
RowCounterExample
public RowCounterExample()
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.