All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class myawt.GridBag

java.lang.Object
   |
   +----myawt.GridBag

public class GridBag
extends Object
A class to help with the GridBagLayout manager. The class is defined simply for its one static method. It is not intended to be instantiated.

See Also:
GridBagLayout

Constructor Index

 o GridBag()

Method Index

 o constrain(Container, Component, int, int, int, int, int, int, double, double, int, int, int, int)
A method to put a java.awt.Component in a java.awt.Container being laid out by a GridBagLayout manager.

Constructors

 o GridBag
 public GridBag()

Methods

 o constrain
 public static void constrain(Container container,
                              Component component,
                              int grid_x,
                              int grid_y,
                              int grid_width,
                              int grid_height,
                              int fill,
                              int anchor,
                              double weight_x,
                              double weight_y,
                              int top,
                              int left,
                              int bottom,
                              int right)
A method to put a java.awt.Component in a java.awt.Container being laid out by a GridBagLayout manager.

Parameters:
container - The parent Container.
component - The Component to be placed.
grid_x - x-coordinate in the grid.
grid_y - y-coordinate in the grid.
grid_width - How many grid spaces to take up horizontally.
grid_height - How many grid spaces to take up vertically.
fill - A GridBagLayout constant specifying in which direction the component can grow to fill the grid space allotted.
anchor - A GridBagLayout constant specifying where in the grid space allotted the component should be placed.
weight_x - How fast the component should grow in x-direction, if the container is resized.
weight_y - How fast the component should grow in y-direction, if the container is resized.
top - the space left blank at the top of the component.
left - the space left blank at the left of the component.
bottom - the space left blank at the bottom of the component.
right - the space left blank at the right of the component.

All Packages  Class Hierarchy  This Package  Previous  Next  Index