java.awt
Class GridBagConstraints

java.lang.Object sample code for java.lang.Object definition code for java.lang.Object 
  extended by java.awt.GridBagConstraints
All Implemented Interfaces:
Serializable sample code for java.io.Serializable definition code for java.io.Serializable , Cloneable sample code for java.lang.Cloneable definition code for java.lang.Cloneable

public class GridBagConstraints
extends Object sample code for java.lang.Object definition code for java.lang.Object
implements Cloneable sample code for java.lang.Cloneable definition code for java.lang.Cloneable , Serializable sample code for java.io.Serializable definition code for java.io.Serializable

The GridBagConstraints class specifies constraints for components that are laid out using the GridBagLayout class.

Since:
JDK1.0
See Also:
GridBagLayout sample code for java.awt.GridBagLayout definition code for java.awt.GridBagLayout , Serialized Form

Field Summary
 int anchor sample code for java.awt.GridBagConstraints.anchor definition code for java.awt.GridBagConstraints.anchor
          This field is used when the component is smaller than its display area.
static int BOTH sample code for java.awt.GridBagConstraints.BOTH definition code for java.awt.GridBagConstraints.BOTH
          Resize the component both horizontally and vertically.
static int CENTER sample code for java.awt.GridBagConstraints.CENTER definition code for java.awt.GridBagConstraints.CENTER
          Put the component in the center of its display area.
static int EAST sample code for java.awt.GridBagConstraints.EAST definition code for java.awt.GridBagConstraints.EAST
          Put the component on the right side of its display area, centered vertically.
 int fill sample code for java.awt.GridBagConstraints.fill definition code for java.awt.GridBagConstraints.fill
          This field is used when the component's display area is larger than the component's requested size.
static int FIRST_LINE_END sample code for java.awt.GridBagConstraints.FIRST_LINE_END definition code for java.awt.GridBagConstraints.FIRST_LINE_END
          Place the component in the corner of its display area where the first line of text on a page would normally end for the current ComponentOrienation.
static int FIRST_LINE_START sample code for java.awt.GridBagConstraints.FIRST_LINE_START definition code for java.awt.GridBagConstraints.FIRST_LINE_START
          Place the component in the corner of its display area where the first line of text on a page would normally begin for the current ComponentOrienation.
 int gridheight sample code for java.awt.GridBagConstraints.gridheight definition code for java.awt.GridBagConstraints.gridheight
          Specifies the number of cells in a column for the component's display area.
 int gridwidth sample code for java.awt.GridBagConstraints.gridwidth definition code for java.awt.GridBagConstraints.gridwidth
          Specifies the number of cells in a row for the component's display area.
 int gridx sample code for java.awt.GridBagConstraints.gridx definition code for java.awt.GridBagConstraints.gridx
          Specifies the cell containing the leading edge of the component's display area, where the first cell in a row has gridx=0.
 int gridy sample code for java.awt.GridBagConstraints.gridy definition code for java.awt.GridBagConstraints.gridy
          Specifies the cell at the top of the component's display area, where the topmost cell has gridy=0.
static int HORIZONTAL sample code for java.awt.GridBagConstraints.HORIZONTAL definition code for java.awt.GridBagConstraints.HORIZONTAL
          Resize the component horizontally but not vertically.
 Insets sample code for java.awt.Insets definition code for java.awt.Insets insets sample code for java.awt.GridBagConstraints.insets definition code for java.awt.GridBagConstraints.insets
          This field specifies the external padding of the component, the minimum amount of space between the component and the edges of its display area.
 int ipadx sample code for java.awt.GridBagConstraints.ipadx definition code for java.awt.GridBagConstraints.ipadx
          This field specifies the internal padding of the component, how much space to add to the minimum width of the component.
 int ipady sample code for java.awt.GridBagConstraints.ipady definition code for java.awt.GridBagConstraints.ipady
          This field specifies the internal padding, that is, how much space to add to the minimum height of the component.
static int LAST_LINE_END sample code for java.awt.GridBagConstraints.LAST_LINE_END definition code for java.awt.GridBagConstraints.LAST_LINE_END
          Place the component in the corner of its display area where the last line of text on a page would normally end for the current ComponentOrienation.
static int LAST_LINE_START sample code for java.awt.GridBagConstraints.LAST_LINE_START definition code for java.awt.GridBagConstraints.LAST_LINE_START
          Place the component in the corner of its display area where the last line of text on a page would normally start for the current ComponentOrienation.
static int LINE_END sample code for java.awt.GridBagConstraints.LINE_END definition code for java.awt.GridBagConstraints.LINE_END
          Place the component centered along the edge of its display area where lines of text would normally end for the current ComponentOrienation.
static int LINE_START sample code for java.awt.GridBagConstraints.LINE_START definition code for java.awt.GridBagConstraints.LINE_START
          Place the component centered along the edge of its display area where lines of text would normally begin for the current ComponentOrienation.
static int NONE sample code for java.awt.GridBagConstraints.NONE definition code for java.awt.GridBagConstraints.NONE
          Do not resize the component.
static int NORTH sample code for java.awt.GridBagConstraints.NORTH definition code for java.awt.GridBagConstraints.NORTH
          Put the component at the top of its display area, centered horizontally.
static int NORTHEAST sample code for java.awt.GridBagConstraints.NORTHEAST definition code for java.awt.GridBagConstraints.NORTHEAST
          Put the component at the top-right corner of its display area.
static int NORTHWEST sample code for java.awt.GridBagConstraints.NORTHWEST definition code for java.awt.GridBagConstraints.NORTHWEST
          Put the component at the top-left corner of its display area.
static int PAGE_END sample code for java.awt.GridBagConstraints.PAGE_END definition code for java.awt.GridBagConstraints.PAGE_END
          Place the component centered along the edge of its display area associated with the end of a page for the current ComponentOrienation.
static int PAGE_START sample code for java.awt.GridBagConstraints.PAGE_START definition code for java.awt.GridBagConstraints.PAGE_START
          Place the component centered along the edge of its display area associated with the start of a page for the current ComponentOrienation.
static int RELATIVE sample code for java.awt.GridBagConstraints.RELATIVE definition code for java.awt.GridBagConstraints.RELATIVE
          Specifies that this component is the next-to-last component in its column or row (gridwidth, gridheight), or that this component be placed next to the previously added component (gridx, gridy).
static int REMAINDER sample code for java.awt.GridBagConstraints.REMAINDER definition code for java.awt.GridBagConstraints.REMAINDER
          Specifies that this component is the last component in its column or row.
static int SOUTH sample code for java.awt.GridBagConstraints.SOUTH definition code for java.awt.GridBagConstraints.SOUTH
          Put the component at the bottom of its display area, centered horizontally.
static int SOUTHEAST sample code for java.awt.GridBagConstraints.SOUTHEAST definition code for java.awt.GridBagConstraints.SOUTHEAST
          Put the component at the bottom-right corner of its display area.
static int SOUTHWEST sample code for java.awt.GridBagConstraints.SOUTHWEST definition code for java.awt.GridBagConstraints.SOUTHWEST
          Put the component at the bottom-left corner of its display area.
static int VERTICAL sample code for java.awt.GridBagConstraints.VERTICAL definition code for java.awt.GridBagConstraints.VERTICAL
          Resize the component vertically but not horizontally.
 double weightx sample code for java.awt.GridBagConstraints.weightx definition code for java.awt.GridBagConstraints.weightx
          Specifies how to distribute extra horizontal space.
 double weighty sample code for java.awt.GridBagConstraints.weighty definition code for java.awt.GridBagConstraints.weighty
          Specifies how to distribute extra vertical space.
static int WEST sample code for java.awt.GridBagConstraints.WEST definition code for java.awt.GridBagConstraints.WEST
          Put the component on the left side of its display area, centered vertically.
 
Constructor Summary
GridBagConstraints sample code for java.awt.GridBagConstraints.GridBagConstraints() definition code for java.awt.GridBagConstraints.GridBagConstraints() ()
          Creates a GridBagConstraint object with all of its fields set to their default value.
GridBagConstraints sample code for java.awt.GridBagConstraints.GridBagConstraints(int, int, int, int, double, double, int, int, java.awt.Insets, int, int) definition code for java.awt.GridBagConstraints.GridBagConstraints(int, int, int, int, double, double, int, int, java.awt.Insets, int, int) (int gridx, int gridy, int gridwidth, int gridheight, double weightx, double weighty, int anchor, int fill, Insets sample code for java.awt.Insets definition code for java.awt.Insets  insets, int ipadx, int ipady)
          Creates a GridBagConstraints object with all of its fields set to the passed-in arguments.
 
Method Summary
 Object sample code for java.lang.Object definition code for java.lang.Object clone sample code for java.awt.GridBagConstraints.clone() definition code for java.awt.GridBagConstraints.clone() ()
          Creates a copy of this grid bag constraint.
 
Methods inherited from class java.lang.Object sample code for java.lang.Object definition code for java.lang.Object
equals sample code for java.lang.Object.equals(java.lang.Object) definition code for java.lang.Object.equals(java.lang.Object) , finalize sample code for java.lang.Object.finalize() definition code for java.lang.Object.finalize() , getClass sample code for java.lang.Object.getClass() definition code for java.lang.Object.getClass() , hashCode sample code for java.lang.Object.hashCode() definition code for java.lang.Object.hashCode() , notify sample code for java.lang.Object.notify() definition code for java.lang.Object.notify() , notifyAll sample code for java.lang.Object.notifyAll() definition code for java.lang.Object.notifyAll() , toString sample code for java.lang.Object.toString() definition code for java.lang.Object.toString() , wait sample code for java.lang.Object.wait() definition code for java.lang.Object.wait() , wait sample code for java.lang.Object.wait(long) definition code for java.lang.Object.wait(long) , wait sample code for java.lang.Object.wait(long, int) definition code for java.lang.Object.wait(long, int)
 

Field Detail

RELATIVE sample code for java.awt.GridBagConstraints.RELATIVE

public static final int RELATIVE
Specifies that this component is the next-to-last component in its column or row (gridwidth, gridheight), or that this component be placed next to the previously added component (gridx, gridy).

See Also:
gridwidth sample code for java.awt.GridBagConstraints.gridwidth definition code for java.awt.GridBagConstraints.gridwidth , gridheight sample code for java.awt.GridBagConstraints.gridheight definition code for java.awt.GridBagConstraints.gridheight , gridx sample code for java.awt.GridBagConstraints.gridx definition code for java.awt.GridBagConstraints.gridx , gridy sample code for java.awt.GridBagConstraints.gridy definition code for java.awt.GridBagConstraints.gridy , Constant Field Values

REMAINDER sample code for java.awt.GridBagConstraints.REMAINDER

public static final int REMAINDER
Specifies that this component is the last component in its column or row.

See Also:
Constant Field Values

NONE sample code for java.awt.GridBagConstraints.NONE

public static final int NONE
Do not resize the component.

See Also:
Constant Field Values

BOTH sample code for java.awt.GridBagConstraints.BOTH

public static final int BOTH
Resize the component both horizontally and vertically.

See Also:
Constant Field Values

HORIZONTAL sample code for java.awt.GridBagConstraints.HORIZONTAL

public static final int HORIZONTAL
Resize the component horizontally but not vertically.

See Also:
Constant Field Values

VERTICAL sample code for java.awt.GridBagConstraints.VERTICAL

public static final int VERTICAL
Resize the component vertically but not horizontally.

See Also:
Constant Field Values

CENTER sample code for java.awt.GridBagConstraints.CENTER

public static final int CENTER
Put the component in the center of its display area.

See Also:
Constant Field Values

NORTH sample code for java.awt.GridBagConstraints.NORTH

public static final int NORTH
Put the component at the top of its display area, centered horizontally.

See Also:
Constant Field Values

NORTHEAST sample code for java.awt.GridBagConstraints.NORTHEAST

public static final int NORTHEAST
Put the component at the top-right corner of its display area.

See Also:
Constant Field Values

EAST sample code for java.awt.GridBagConstraints.EAST

public static final int EAST
Put the component on the right side of its display area, centered vertically.

See Also:
Constant Field Values

SOUTHEAST sample code for java.awt.GridBagConstraints.SOUTHEAST

public static final int SOUTHEAST
Put the component at the bottom-right corner of its display area.

See Also:
Constant Field Values

SOUTH sample code for java.awt.GridBagConstraints.SOUTH

public static final int SOUTH
Put the component at the bottom of its display area, centered horizontally.

See Also:
Constant Field Values

SOUTHWEST sample code for java.awt.GridBagConstraints.SOUTHWEST

public static final int SOUTHWEST
Put the component at the bottom-left corner of its display area.

See Also:
Constant Field Values

WEST sample code for java.awt.GridBagConstraints.WEST

public static final int WEST
Put the component on the left side of its display area, centered vertically.

See Also:
Constant Field Values

NORTHWEST sample code for java.awt.GridBagConstraints.NORTHWEST

public static final int NORTHWEST
Put the component at the top-left corner of its display area.

See Also:
Constant Field Values

PAGE_START sample code for java.awt.GridBagConstraints.PAGE_START

public static final int PAGE_START
Place the component centered along the edge of its display area associated with the start of a page for the current ComponentOrienation. Equal to NORTH for horizontal orientations.

See Also:
Constant Field Values

PAGE_END sample code for java.awt.GridBagConstraints.PAGE_END

public static final int PAGE_END
Place the component centered along the edge of its display area associated with the end of a page for the current ComponentOrienation. Equal to SOUTH for horizontal orientations.

See Also:
Constant Field Values

LINE_START sample code for java.awt.GridBagConstraints.LINE_START

public static final int LINE_START
Place the component centered along the edge of its display area where lines of text would normally begin for the current ComponentOrienation. Equal to WEST for horizontal, left-to-right orientations and EAST for horizontal, right-to-left orientations.

See Also:
Constant Field Values

LINE_END sample code for java.awt.GridBagConstraints.LINE_END

public static final int LINE_END
Place the component centered along the edge of its display area where lines of text would normally end for the current ComponentOrienation. Equal to EAST for horizontal, left-to-right orientations and WEST for horizontal, right-to-left orientations.

See Also:
Constant Field Values

FIRST_LINE_START sample code for java.awt.GridBagConstraints.FIRST_LINE_START

public static final int FIRST_LINE_START
Place the component in the corner of its display area where the first line of text on a page would normally begin for the current ComponentOrienation. Equal to NORTHWEST for horizontal, left-to-right orientations and NORTHEAST for horizontal, right-to-left orientations.

See Also:
Constant Field Values

FIRST_LINE_END sample code for java.awt.GridBagConstraints.FIRST_LINE_END

public static final int FIRST_LINE_END
Place the component in the corner of its display area where the first line of text on a page would normally end for the current ComponentOrienation. Equal to NORTHEAST for horizontal, left-to-right orientations and NORTHWEST for horizontal, right-to-left orientations.

See Also:
Constant Field Values

LAST_LINE_START sample code for java.awt.GridBagConstraints.LAST_LINE_START

public static final int LAST_LINE_START
Place the component in the corner of its display area where the last line of text on a page would normally start for the current ComponentOrienation. Equal to SOUTHWEST for horizontal, left-to-right orientations and SOUTHEAST for horizontal, right-to-left orientations.

See Also:
Constant Field Values

LAST_LINE_END sample code for java.awt.GridBagConstraints.LAST_LINE_END

public static final int LAST_LINE_END
Place the component in the corner of its display area where the last line of text on a page would normally end for the current ComponentOrienation. Equal to SOUTHEAST for horizontal, left-to-right orientations and SOUTHWEST for horizontal, right-to-left orientations.

See Also:
Constant Field Values

gridx sample code for java.awt.GridBagConstraints.gridx

public int gridx
Specifies the cell containing the leading edge of the component's display area, where the first cell in a row has gridx=0. The leading edge of a component's display area is its left edge for a horizontal, left-to-right container and its right edge for a horizontal, right-to-left container. The value RELATIVE specifies that the component be placed immediately following the component that was added to the container just before this component was added.

The default value is RELATIVE. gridx should be a non-negative value.

See Also:
clone() sample code for java.awt.GridBagConstraints.clone() definition code for java.awt.GridBagConstraints.clone() , gridy sample code for java.awt.GridBagConstraints.gridy definition code for java.awt.GridBagConstraints.gridy , ComponentOrientation sample code for java.awt.ComponentOrientation definition code for java.awt.ComponentOrientation

gridy sample code for java.awt.GridBagConstraints.gridy

public int gridy
Specifies the cell at the top of the component's display area, where the topmost cell has gridy=0. The value RELATIVE specifies that the component be placed just below the component that was added to the container just before this component was added.

The default value is RELATIVE. gridy should be a non-negative value.

See Also:
clone() sample code for java.awt.GridBagConstraints.clone() definition code for java.awt.GridBagConstraints.clone() , gridx sample code for java.awt.GridBagConstraints.gridx definition code for java.awt.GridBagConstraints.gridx

gridwidth sample code for java.awt.GridBagConstraints.gridwidth

public int gridwidth
Specifies the number of cells in a row for the component's display area.

Use REMAINDER to specify that the component's display area will be from gridx to the last cell in the row. Use RELATIVE to specify that the component's display area will be from gridx to the next to the last one in its row.

gridwidth should be non-negative and the default value is 1.

See Also:
clone() sample code for java.awt.GridBagConstraints.clone() definition code for java.awt.GridBagConstraints.clone() , gridheight sample code for java.awt.GridBagConstraints.gridheight definition code for java.awt.GridBagConstraints.gridheight

gridheight sample code for java.awt.GridBagConstraints.gridheight

public int gridheight
Specifies the number of cells in a column for the component's display area.

Use REMAINDER to specify that the component's display area will be from gridy to the last cell in the column. Use RELATIVE to specify that the component's display area will be from gridy to the next to the last one in its column.

gridheight should be a non-negative value and the default value is 1.

See Also:
clone() sample code for java.awt.GridBagConstraints.clone() definition code for java.awt.GridBagConstraints.clone() , gridwidth sample code for java.awt.GridBagConstraints.gridwidth definition code for java.awt.GridBagConstraints.gridwidth

weightx sample code for java.awt.GridBagConstraints.weightx

public double weightx
Specifies how to distribute extra horizontal space.

The grid bag layout manager calculates the weight of a column to be the maximum weightx of all the components in a column. If the resulting layout is smaller horizontally than the area it needs to fill, the extra space is distributed to each column in proportion to its weight. A column that has a weight of zero receives no extra space.

If all the weights are zero, all the extra space appears between the grids of the cell and the left and right edges.

The default value of this field is 0. weightx should be a non-negative value.

See Also:
clone() sample code for java.awt.GridBagConstraints.clone() definition code for java.awt.GridBagConstraints.clone() , weighty sample code for java.awt.GridBagConstraints.weighty definition code for java.awt.GridBagConstraints.weighty

weighty sample code for java.awt.GridBagConstraints.weighty

public double weighty
Specifies how to distribute extra vertical space.

The grid bag layout manager calculates the weight of a row to be the maximum weighty of all the components in a row. If the resulting layout is smaller vertically than the area it needs to fill, the extra space is distributed to each row in proportion to its weight. A row that has a weight of zero receives no extra space.

If all the weights are zero, all the extra space appears between the grids of the cell and the top and bottom edges.

The default value of this field is 0. weighty should be a non-negative value.

See Also:
clone() sample code for java.awt.GridBagConstraints.clone() definition code for java.awt.GridBagConstraints.clone() , weightx sample code for java.awt.GridBagConstraints.weightx definition code for java.awt.GridBagConstraints.weightx

anchor sample code for java.awt.GridBagConstraints.anchor

public int anchor
This field is used when the component is smaller than its display area. It determines where, within the display area, to place the component.

There are two kinds of possible values: relative and absolute. Relative values are interpreted relative to the container's component orientation property while absolute values are not. The absolute values are: CENTER, NORTH, NORTHEAST, EAST, SOUTHEAST, SOUTH, SOUTHWEST, WEST, and NORTHWEST. The relative values are: PAGE_START, PAGE_END, LINE_START, LINE_END, FIRST_LINE_START, FIRST_LINE_END, LAST_LINE_START and LAST_LINE_END. The default value is CENTER.

See Also:
clone() sample code for java.awt.GridBagConstraints.clone() definition code for java.awt.GridBagConstraints.clone() , ComponentOrientation sample code for java.awt.ComponentOrientation definition code for java.awt.ComponentOrientation

fill sample code for java.awt.GridBagConstraints.fill

public int fill
This field is used when the component's display area is larger than the component's requested size. It determines whether to resize the component, and if so, how.

The following values are valid for fill:

The default value is NONE.

See Also:
clone() sample code for java.awt.GridBagConstraints.clone() definition code for java.awt.GridBagConstraints.clone()

insets sample code for java.awt.GridBagConstraints.insets

public Insets sample code for java.awt.Insets definition code for java.awt.Insets  insets
This field specifies the external padding of the component, the minimum amount of space between the component and the edges of its display area.

The default value is new Insets(0, 0, 0, 0).

See Also:
clone() sample code for java.awt.GridBagConstraints.clone() definition code for java.awt.GridBagConstraints.clone()

ipadx sample code for java.awt.GridBagConstraints.ipadx

public int ipadx
This field specifies the internal padding of the component, how much space to add to the minimum width of the component. The width of the component is at least its minimum width plus ipadx pixels.

The default value is 0.

See Also:
clone() sample code for java.awt.GridBagConstraints.clone() definition code for java.awt.GridBagConstraints.clone() , ipady sample code for java.awt.GridBagConstraints.ipady definition code for java.awt.GridBagConstraints.ipady

ipady sample code for java.awt.GridBagConstraints.ipady

public int ipady
This field specifies the internal padding, that is, how much space to add to the minimum height of the component. The height of the component is at least its minimum height plus ipady pixels.

The default value is 0.

See Also:
clone() sample code for java.awt.GridBagConstraints.clone() definition code for java.awt.GridBagConstraints.clone() , ipadx sample code for java.awt.GridBagConstraints.ipadx definition code for java.awt.GridBagConstraints.ipadx
Constructor Detail

GridBagConstraints sample code for java.awt.GridBagConstraints() definition code for java.awt.GridBagConstraints()

public GridBagConstraints()
Creates a GridBagConstraint object with all of its fields set to their default value.


GridBagConstraints sample code for java.awt.GridBagConstraints(int, int, int, int, double, double, int, int, java.awt.Insets, int, int) definition code for java.awt.GridBagConstraints(int, int, int, int, double, double, int, int, java.awt.Insets, int, int)

public GridBagConstraints(int gridx,
                          int gridy,
                          int gridwidth,
                          int gridheight,
                          double weightx,
                          double weighty,
                          int anchor,
                          int fill,
                          Insets sample code for java.awt.Insets definition code for java.awt.Insets  insets,
                          int ipadx,
                          int ipady)
Creates a GridBagConstraints object with all of its fields set to the passed-in arguments. Note: Because the use of this constructor hinders readability of source code, this constructor should only be used by automatic source code generation tools.

Parameters:
gridx - The initial gridx value.
gridy - The initial gridy value.
gridwidth - The initial gridwidth value.
gridheight - The initial gridheight value.
weightx - The initial weightx value.
weighty - The initial weighty value.
anchor - The initial anchor value.
fill - The initial fill value.
insets - The initial insets value.
ipadx - The initial ipadx value.
ipady - The initial ipady value.
Since:
1.2
See Also:
gridx sample code for java.awt.GridBagConstraints.gridx definition code for java.awt.GridBagConstraints.gridx , gridy sample code for java.awt.GridBagConstraints.gridy definition code for java.awt.GridBagConstraints.gridy , gridwidth sample code for java.awt.GridBagConstraints.gridwidth definition code for java.awt.GridBagConstraints.gridwidth , gridheight sample code for java.awt.GridBagConstraints.gridheight definition code for java.awt.GridBagConstraints.gridheight , weightx sample code for java.awt.GridBagConstraints.weightx definition code for java.awt.GridBagConstraints.weightx , weighty sample code for java.awt.GridBagConstraints.weighty definition code for java.awt.GridBagConstraints.weighty , anchor sample code for java.awt.GridBagConstraints.anchor definition code for java.awt.GridBagConstraints.anchor , fill sample code for java.awt.GridBagConstraints.fill definition code for java.awt.GridBagConstraints.fill , insets sample code for java.awt.GridBagConstraints.insets definition code for java.awt.GridBagConstraints.insets , ipadx sample code for java.awt.GridBagConstraints.ipadx definition code for java.awt.GridBagConstraints.ipadx , ipady sample code for java.awt.GridBagConstraints.ipady definition code for java.awt.GridBagConstraints.ipady
Method Detail

clone sample code for java.awt.GridBagConstraints.clone() definition code for java.awt.GridBagConstraints.clone()

public Object sample code for java.lang.Object definition code for java.lang.Object  clone()
Creates a copy of this grid bag constraint.

Overrides:
clone sample code for java.lang.Object.clone() definition code for java.lang.Object.clone() in class Object sample code for java.lang.Object definition code for java.lang.Object
Returns:
a copy of this grid bag constraint
See Also:
Cloneable sample code for java.lang.Cloneable definition code for java.lang.Cloneable