Class SWORDFormPanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class SWORDFormPanel extends JPanel
Utility class. Creates a two column form. The left column is used to show the label for the row. The right column is used to show the control, e.g. text box, combo box or checkbox, for the row.
Author:
Neil Taylor
See Also:
  • Constructor Details

    • SWORDFormPanel

      public SWORDFormPanel()
      Create a new instance of the class.
  • Method Details

    • addFirstRow

      public void addFirstRow(Component one)
      Add the specified component as the first row. It will occupy two columns.
      Parameters:
      one - The control to add.
    • addFirstRow

      public void addFirstRow(Component one, Component two)
      Add the specified components as the first row in the form.
      Parameters:
      one - The label component.
      two - The control component.
    • addRow

      public void addRow(Component one)
      Add a component to the general row. This will be added in the label column.
      Parameters:
      one - The component.
    • addRow

      public void addRow(Component one, Component two)
      Add a component to the general row.
      Parameters:
      one - The component to add to the label column.
      two - The component to add to the control column.
    • addRow

      protected void addRow(Component one, Component two, Insets labels, Insets controls)
      Add a row to the table.
      Parameters:
      one - The component to display in the label column.
      two - The component to display in the control column.
      labels - The insets for the label column.
      controls - The insets for the controls column.