All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.monsterworks.GridPanel



java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----com.monsterworks.GridPanel

public class GridPanel
extends java.awt.Panel
This class implements a Panel with the GridBagLayout already installed. This class is very crude. I should add more options with constructors as as more error checking of parameters to the add method.

Version:
1.0b1
Author:
Aaron Montgomery

Variable Index

 o myConstraints
 o myLayout

Constructor Index

 o GridPanel()
This method constructs a GridPanel with default settings.

Method Index

 o add(Component, int, int, int, int)
This method allows adding a component to the Panel

Variables

 o myLayout


 protected java.awt.GridBagLayout myLayout
 o myConstraints


 protected java.awt.GridBagConstraints myConstraints

Constructors

 o GridPanel


 public GridPanel()
This method constructs a GridPanel with default settings. fill <- horizontal
weightx <- 100
weighty <- 100
insets <- insets(10, 10, 10, 10)

Methods

 o add


 public void add(java.awt.Component inComponent,
                 int inRow,
                 int inColumn,
                 int inHeight,
                 int inWidth)
This method allows adding a component to the Panel

Parameters:
inComponent - is the component to be added
inRow - is the row in which the component is added
inColumn - is the column in which the component is added
inHeight - is the height of the component
inWidth - is the width of the component



All Packages  Class Hierarchy  This Package  Previous  Next  Index