Class EDU.auburn.VGJ.gui.LPanel
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class EDU.auburn.VGJ.gui.LPanel

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----EDU.auburn.VGJ.gui.LPanel

public class LPanel
extends Panel
A panel class with convenience functions.

Here is the source.

Variable Index

 o constraints
 o layout
 o spacing
 o textColor

Constructor Index

 o LPanel()

Method Index

 o addButton(String, int, int, double, double, int, int)
 o addButtonPanel(String, int)
Add a panel of evenly-spaced buttons.
 o addCheckbox(String, CheckboxGroup, boolean, int, int, double, double, int, int)
 o addComponent(Component, int, int, double, double, int, int)
 o addLabel(String, int, int, double, double, int, int)
 o addLineLabel(String, int)
Add a left aligned label at the start of a line.
 o addTextField(int, int, int, double, double, int, int)
Add a left-aligned, full-width text field.
 o addTextField(String, int, int, int, double, double, int, int)
Add a left-aligned, full-width text field.
 o finish()
Finish initialization.

Variables

 o textColor
  public Color textColor
 o spacing
  public int spacing
 o layout
  public GridBagLayout layout
 o constraints
  public GridBagConstraints constraints

Constructors

 o LPanel
  public LPanel()

Methods

 o finish
  public void finish()
Finish initialization.
 o addLineLabel
  public Label addLineLabel(String string,
                            int width)
Add a left aligned label at the start of a line.
 o addButtonPanel
  public Panel addButtonPanel(String labels,
                              int width)
Add a panel of evenly-spaced buttons.
 o addTextField
  public TextField addTextField(int len,
                                int width,
                                int anchor,
                                double weightx,
                                double weighty,
                                int fill,
                                int shift)
Add a left-aligned, full-width text field.
 o addTextField
  public TextField addTextField(String text,
                                int len,
                                int width,
                                int anchor,
                                double weightx,
                                double weighty,
                                int fill,
                                int shift)
Add a left-aligned, full-width text field.
 o addLabel
  public Label addLabel(String string,
                        int width,
                        int anchor,
                        double weightx,
                        double weighty,
                        int fill,
                        int shift)
 o addButton
  public Button addButton(String string,
                          int width,
                          int anchor,
                          double weightx,
                          double weighty,
                          int fill,
                          int shift)
 o addCheckbox
  public Checkbox addCheckbox(String string,
                              CheckboxGroup group,
                              boolean state,
                              int width,
                              int anchor,
                              double weightx,
                              double weighty,
                              int fill,
                              int shift)
 o addComponent
  public Component addComponent(Component component,
                                int width,
                                int anchor,
                                double weightx,
                                double weighty,
                                int fill,
                                int shift)

All Packages  Class Hierarchy  This Package  Previous  Next  Index