jimmc.swing
Class GridBagger

java.lang.Object
  |
  +--jimmc.swing.GridBagger

public class GridBagger
extends java.lang.Object

GridBagger is a helper class to simplify using GridBagLayout. It includes a few utility routines to make the code using the GridBagLayout cleaner.


Field Summary
 java.awt.Container container
          The container to which this GridBagger adds.
 java.awt.GridBagConstraints gbc
          The GridBagConstraints used by this GridBagger.
 java.awt.GridBagLayout gbl
          The GridBagLayout used by this GridBagger.
 
Constructor Summary
GridBagger(java.awt.Container p)
          Create a GridBagger for a Container.
 
Method Summary
 void add(java.awt.Component c)
          Add a component in the next column of the same row.
 void add(java.awt.GridBagConstraints gbc2, java.awt.Component c)
          Add a component in the next column of the same row.
 void addLast(java.awt.Component c)
          Add a component which is the last in the row.
 void nextRow()
          Advance to the next row.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

container

public java.awt.Container container
The container to which this GridBagger adds.

gbl

public java.awt.GridBagLayout gbl
The GridBagLayout used by this GridBagger.

gbc

public java.awt.GridBagConstraints gbc
The GridBagConstraints used by this GridBagger.
Constructor Detail

GridBagger

public GridBagger(java.awt.Container p)
Create a GridBagger for a Container.
Method Detail

add

public void add(java.awt.Component c)
Add a component in the next column of the same row.

add

public void add(java.awt.GridBagConstraints gbc2,
                java.awt.Component c)
Add a component in the next column of the same row.

addLast

public void addLast(java.awt.Component c)
Add a component which is the last in the row.

nextRow

public void nextRow()
Advance to the next row.