Class LabelCompPanel

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----LabelCompPanel

public class LabelCompPanel
extends Panel
Sets up a panel that is a 2-column grid with field labels in the first column and AWT components in the second column.


Constructor Index

 o LabelCompPanel()
Create a panel with defaults that labels are right/top justified and components are left/top justtified in a GridBagLayout.

Method Index

 o addLabelComp(Label, Component)
Adds a label and a generic component to this panel
 o addTextField(String, int)
Adds a label and textfield pair to this panel

Constructors

 o LabelCompPanel
 public LabelCompPanel()
Create a panel with defaults that labels are right/top justified and components are left/top justtified in a GridBagLayout.

Methods

 o addLabelComp
 public LabelCompPair addLabelComp(Label l,
                                   Component c)
Adds a label and a generic component to this panel

 o addTextField
 public LabelCompPair addTextField(String labelText,
                                   int fieldLen)
Adds a label and textfield pair to this panel