<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<!--NewPage-->
<html>
<head>
<!-- Generated by javadoc on Wed Jul 28 01:21:15 GMT 1999 -->
<title>
  Class java.awt.GridBagConstraints
</title>
</head>
<body>
<a name="_top_"></a>
<pre>
<a href="packages.html">All Packages</a>  <a href="tree.html">Class Hierarchy</a>  <a href="Package-java.awt.html">This Package</a>  <a href="java.awt.Graphics.html#_top_">Previous</a>  <a href="java.awt.GridBagLayout.html#_top_">Next</a>  <a href="AllNames.html">Index</a></pre>
<hr>
<h1>
  Class java.awt.GridBagConstraints
</h1>
<pre>
<a href="java.lang.Object.html#_top_">java.lang.Object</a>
   |
   +----java.awt.GridBagConstraints
</pre>
<hr>
<dl>
  <dt> public class <b>GridBagConstraints</b>
  <dt> extends <a href="java.lang.Object.html#_top_">Object</a>
  <dt> implements <a href="java.lang.Cloneable.html#_top_">Cloneable</a>, <a href="java.io.Serializable.html#_top_">Serializable</a>
</dl>
The <code>GridBagConstraints</code> class specifies constraints
 for components that are laid out using the
 <code>GridBagLayout</code> class.
<p>
<dl>
    <dt> <b>See Also:</b>
    <dd> <a href="java.awt.GridBagLayout.html#_top_">GridBagLayout</a>
</dl>
<hr>
<a name="index"></a>
<h2>
  <img src="images/variable-index.gif" width=207 height=38 alt="Variable Index">
</h2>
<dl>
  <dt> <img src="images/magenta-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#anchor"><b>anchor</b></a>
  <dd>  This field is used when the component is smaller than its display
 area.
  <dt> <img src="images/blue-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#BOTH"><b>BOTH</b></a>
  <dd>  Resize the component both horizontally and vertically.
  <dt> <img src="images/blue-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#CENTER"><b>CENTER</b></a>
  <dd>  Put the component in the center of its display area.
  <dt> <img src="images/blue-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#EAST"><b>EAST</b></a>
  <dd>  Put the component on the right side of its display area,
 centered vertically.
  <dt> <img src="images/magenta-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#fill"><b>fill</b></a>
  <dd>  This field is used when the component's display area is larger
 than the component's requested size.
  <dt> <img src="images/magenta-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#gridheight"><b>gridheight</b></a>
  <dd>  Specifies the number of cells in a column for the component's
 display area.
  <dt> <img src="images/magenta-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#gridwidth"><b>gridwidth</b></a>
  <dd>  Specifies the number of cells in a row for the component's
 display area.
  <dt> <img src="images/magenta-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#gridx"><b>gridx</b></a>
  <dd>  Specifies the cell at the left of the component's display area,
 where the leftmost cell has <code>gridx&nbsp;=&nbsp;0</code>.
  <dt> <img src="images/magenta-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#gridy"><b>gridy</b></a>
  <dd>  Specifies the cell at the top of the component's display area,
 where the topmost cell has <code>gridy&nbsp;=&nbsp;0</code>.
  <dt> <img src="images/blue-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#HORIZONTAL"><b>HORIZONTAL</b></a>
  <dd>  Resize the component horizontally but not vertically.
  <dt> <img src="images/magenta-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#insets"><b>insets</b></a>
  <dd>  This field specifies the external padding of the component, the
 minimum amount of space between the component and the edges of its
 display area.
  <dt> <img src="images/magenta-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#ipadx"><b>ipadx</b></a>
  <dd>  This field specifies the internal padding of the component, how much
 space to add to the minimum width of the component.
  <dt> <img src="images/magenta-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#ipady"><b>ipady</b></a>
  <dd>  This field specifies the internal padding, that is, how much
 space to add to the minimum height of the component.
  <dt> <img src="images/blue-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#NONE"><b>NONE</b></a>
  <dd>  Do not resize the component.
  <dt> <img src="images/blue-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#NORTH"><b>NORTH</b></a>
  <dd>  Put the component at the top of its display area,
 centered horizontally.
  <dt> <img src="images/blue-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#NORTHEAST"><b>NORTHEAST</b></a>
  <dd>  Put the component at the top-right corner of its display area.
  <dt> <img src="images/blue-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#NORTHWEST"><b>NORTHWEST</b></a>
  <dd>  Put the component at the top-left corner of its display area.
  <dt> <img src="images/blue-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#RELATIVE"><b>RELATIVE</b></a>
  <dd>  Specify that this component is the next-to-last component in its
 column or row (<code>gridwidth</code>, <code>gridheight</code>),
 or that this component be placed next to the previously added
 component (<code>gridx</code>, <code>gridy</code>).
  <dt> <img src="images/blue-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#REMAINDER"><b>REMAINDER</b></a>
  <dd>  Specify that this component is the
 last component in its column or row.
  <dt> <img src="images/blue-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#SOUTH"><b>SOUTH</b></a>
  <dd>  Put the component at the bottom of its display area, centered
 horizontally.
  <dt> <img src="images/blue-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#SOUTHEAST"><b>SOUTHEAST</b></a>
  <dd>  Put the component at the bottom-right corner of its display area.
  <dt> <img src="images/blue-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#SOUTHWEST"><b>SOUTHWEST</b></a>
  <dd>  Put the component at the bottom-left corner of its display area.
  <dt> <img src="images/blue-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#VERTICAL"><b>VERTICAL</b></a>
  <dd>  Resize the component vertically but not horizontally.
  <dt> <img src="images/magenta-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#weightx"><b>weightx</b></a>
  <dd>  Specifies how to distribute extra horizontal space.
  <dt> <img src="images/magenta-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#weighty"><b>weighty</b></a>
  <dd>  Specifies how to distribute extra vertical space.
  <dt> <img src="images/blue-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#WEST"><b>WEST</b></a>
  <dd>  Put the component on the left side of its display area,
 centered vertically.
</dl>
<h2>
  <img src="images/constructor-index.gif" width=275 height=38 alt="Constructor Index">
</h2>
<dl>
  <dt> <img src="images/yellow-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#GridBagConstraints()"><b>GridBagConstraints</b></a>()
  <dd>  Creates a <code>GridBagConstraint</code> object with
 all of its fields set to their default value.
</dl>
<h2>
  <img src="images/method-index.gif" width=207 height=38 alt="Method Index">
</h2>
<dl>
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#clone()"><b>clone</b></a>()
  <dd>  Creates a copy of this grid bag constraint.
</dl>
<a name="variables"></a>
<h2>
  <img src="images/variables.gif" width=153 height=38 alt="Variables">
</h2>
<a name="RELATIVE"><img src="images/blue-ball.gif" width=12 height=12 alt=" o "></a>
<b>RELATIVE</b>
<pre>
 public static final int RELATIVE
</pre>
<dl>
  <dd> Specify that this component is the next-to-last component in its
 column or row (<code>gridwidth</code>, <code>gridheight</code>),
 or that this component be placed next to the previously added
 component (<code>gridx</code>, <code>gridy</code>).<p>
  <dd><dl> 
    <dt> <b>See Also:</b>
    <dd> <a href="#gridwidth">gridwidth</a>, <a href="#gridheight">gridheight</a>, <a href="#gridx">gridx</a>, <a href="#gridy">gridy</a>
  </dl></dd>
</dl>
<a name="REMAINDER"><img src="images/blue-ball.gif" width=12 height=12 alt=" o "></a>
<b>REMAINDER</b>
<pre>
 public static final int REMAINDER
</pre>
<dl>
  <dd> Specify that this component is the
 last component in its column or row.<p>
</dl>
<a name="NONE"><img src="images/blue-ball.gif" width=12 height=12 alt=" o "></a>
<b>NONE</b>
<pre>
 public static final int NONE
</pre>
<dl>
  <dd> Do not resize the component.<p>
</dl>
<a name="BOTH"><img src="images/blue-ball.gif" width=12 height=12 alt=" o "></a>
<b>BOTH</b>
<pre>
 public static final int BOTH
</pre>
<dl>
  <dd> Resize the component both horizontally and vertically.<p>
</dl>
<a name="HORIZONTAL"><img src="images/blue-ball.gif" width=12 height=12 alt=" o "></a>
<b>HORIZONTAL</b>
<pre>
 public static final int HORIZONTAL
</pre>
<dl>
  <dd> Resize the component horizontally but not vertically.<p>
</dl>
<a name="VERTICAL"><img src="images/blue-ball.gif" width=12 height=12 alt=" o "></a>
<b>VERTICAL</b>
<pre>
 public static final int VERTICAL
</pre>
<dl>
  <dd> Resize the component vertically but not horizontally.<p>
</dl>
<a name="CENTER"><img src="images/blue-ball.gif" width=12 height=12 alt=" o "></a>
<b>CENTER</b>
<pre>
 public static final int CENTER
</pre>
<dl>
  <dd> Put the component in the center of its display area.<p>
</dl>
<a name="NORTH"><img src="images/blue-ball.gif" width=12 height=12 alt=" o "></a>
<b>NORTH</b>
<pre>
 public static final int NORTH
</pre>
<dl>
  <dd> Put the component at the top of its display area,
 centered horizontally.<p>
</dl>
<a name="NORTHEAST"><img src="images/blue-ball.gif" width=12 height=12 alt=" o "></a>
<b>NORTHEAST</b>
<pre>
 public static final int NORTHEAST
</pre>
<dl>
  <dd> Put the component at the top-right corner of its display area.<p>
</dl>
<a name="EAST"><img src="images/blue-ball.gif" width=12 height=12 alt=" o "></a>
<b>EAST</b>
<pre>
 public static final int EAST
</pre>
<dl>
  <dd> Put the component on the right side of its display area,
 centered vertically.<p>
</dl>
<a name="SOUTHEAST"><img src="images/blue-ball.gif" width=12 height=12 alt=" o "></a>
<b>SOUTHEAST</b>
<pre>
 public static final int SOUTHEAST
</pre>
<dl>
  <dd> Put the component at the bottom-right corner of its display area.<p>
</dl>
<a name="SOUTH"><img src="images/blue-ball.gif" width=12 height=12 alt=" o "></a>
<b>SOUTH</b>
<pre>
 public static final int SOUTH
</pre>
<dl>
  <dd> Put the component at the bottom of its display area, centered
 horizontally.<p>
</dl>
<a name="SOUTHWEST"><img src="images/blue-ball.gif" width=12 height=12 alt=" o "></a>
<b>SOUTHWEST</b>
<pre>
 public static final int SOUTHWEST
</pre>
<dl>
  <dd> Put the component at the bottom-left corner of its display area.<p>
</dl>
<a name="WEST"><img src="images/blue-ball.gif" width=12 height=12 alt=" o "></a>
<b>WEST</b>
<pre>
 public static final int WEST
</pre>
<dl>
  <dd> Put the component on the left side of its display area,
 centered vertically.<p>
</dl>
<a name="NORTHWEST"><img src="images/blue-ball.gif" width=12 height=12 alt=" o "></a>
<b>NORTHWEST</b>
<pre>
 public static final int NORTHWEST
</pre>
<dl>
  <dd> Put the component at the top-left corner of its display area.<p>
</dl>
<a name="gridx"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a>
<b>gridx</b>
<pre>
 public int gridx
</pre>
<dl>
  <dd> Specifies the cell at the left of the component's display area,
 where the leftmost cell has <code>gridx&nbsp;=&nbsp;0</code>. The value
 <code>RELATIVE</code> specifies that the component be placed just
 to the right of the component that was added to the container just
 before this component was added.
 <p>
 The default value is <code>RELATIVE</code>.<p>
  <dd><dl> 
    <dt> <b>See Also:</b>
    <dd> <a href="#gridy">gridy</a>
  </dl></dd>
</dl>
<a name="gridy"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a>
<b>gridy</b>
<pre>
 public int gridy
</pre>
<dl>
  <dd> Specifies the cell at the top of the component's display area,
 where the topmost cell has <code>gridy&nbsp;=&nbsp;0</code>. The value
 <code>RELATIVE</code> specifies that the component be placed just
 below the component that was added to the container just before
 this component was added.
 <p>
 The default value is <code>RELATIVE</code>.<p>
  <dd><dl> 
    <dt> <b>See Also:</b>
    <dd> <a href="#gridx">gridx</a>
  </dl></dd>
</dl>
<a name="gridwidth"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a>
<b>gridwidth</b>
<pre>
 public int gridwidth
</pre>
<dl>
  <dd> Specifies the number of cells in a row for the component's
 display area.
 <p>
 Use <code>REMAINDER</code> to specify that the component be the
 last one in its row. Use <code>RELATIVE</code> to specify that the
 component be the next-to-last one in its row.
 <p>
 The default value is 1.<p>
  <dd><dl> 
    <dt> <b>See Also:</b>
    <dd> <a href="#gridheight">gridheight</a>
  </dl></dd>
</dl>
<a name="gridheight"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a>
<b>gridheight</b>
<pre>
 public int gridheight
</pre>
<dl>
  <dd> Specifies the number of cells in a column for the component's
 display area.
 <p>
 Use <code>REMAINDER</code> to specify that the component be the
 last one in its column. Use <code>RELATIVE</code> to specify that
 the component be the next-to-last one in its column.
 <p>
 The default value is 1.<p>
  <dd><dl> 
    <dt> <b>See Also:</b>
    <dd> <a href="#gridwidth">gridwidth</a>
  </dl></dd>
</dl>
<a name="weightx"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a>
<b>weightx</b>
<pre>
 public double weightx
</pre>
<dl>
  <dd> Specifies how to distribute extra horizontal space.
 <p>
 The grid bag layout manager calculates the weight of a column to
 be the maximum <code>weighty</code> of all the components in a
 row. 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 zero receives no
 extra space.
 <p>
 If all the weights are zero, all the extra space appears between
 the grids of the cell and the left and right edges.
 <p>
 The default value of this field is <code>0</code>.<p>
  <dd><dl> 
    <dt> <b>See Also:</b>
    <dd> <a href="#weighty">weighty</a>
  </dl></dd>
</dl>
<a name="weighty"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a>
<b>weighty</b>
<pre>
 public double weighty
</pre>
<dl>
  <dd> Specifies how to distribute extra vertical space.
 <p>
 The grid bag layout manager calculates the weight of a row to be
 the maximum <code>weightx</code> 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.
 <p>
 If all the weights are zero, all the extra space appears between
 the grids of the cell and the top and bottom edges.
 <p>
 The default value of this field is <code>0</code>.<p>
  <dd><dl> 
    <dt> <b>See Also:</b>
    <dd> <a href="#weightx">weightx</a>
  </dl></dd>
</dl>
<a name="anchor"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a>
<b>anchor</b>
<pre>
 public int anchor
</pre>
<dl>
  <dd> This field is used when the component is smaller than its display
 area. It determines where, within the display area, to place the
 component. Possible values are <code>CENTER<code>,
 <code>NORTH<code>, <code>NORTHEAST<code>, <code>EAST<code>,
 <code>SOUTHEAST<code>, <code>SOUTH<code>, <code>SOUTHWEST<code>,
 <code>WEST<code>, and <code>NORTHWEST<code>.
 The default value is <code>CENTER</code>.<p>
</dl>
<a name="fill"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a>
<b>fill</b>
<pre>
 public int fill
</pre>
<dl>
  <dd> 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.
 <p>
 The following values are valid for <code>fill</code>:
 <p>
 <ul>
 <li>
 <code>NONE</code>: Do not resize the component.
 <li>
 <code>HORIZONTAL</code>: Make the component wide enough to fill
         its display area horizontally, but do not change its height.
 <li>
 <code>VERTICAL</code>: Make the component tall enough to fill its
         display area vertically, but do not change its width.
 <li>
 <code>BOTH</code>: Make the component fill its display area
         entirely.
 </ul>
 <p>
 The default value is <code>NONE</code>.<p>
</dl>
<a name="insets"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a>
<b>insets</b>
<pre>
 public <a href="java.awt.Insets.html#_top_">Insets</a> insets
</pre>
<dl>
  <dd> This field specifies the external padding of the component, the
 minimum amount of space between the component and the edges of its
 display area.
 <p>
 The default value is <code>new Insets(0, 0, 0, 0)</code>.<p>
</dl>
<a name="ipadx"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a>
<b>ipadx</b>
<pre>
 public int ipadx
</pre>
<dl>
  <dd> 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
 <code>(ipadx&nbsp;*&nbsp;2)</code> pixels.
 <p>
 The default value is <code>0</code>.<p>
  <dd><dl> 
    <dt> <b>See Also:</b>
    <dd> <a href="#ipady">ipady</a>
  </dl></dd>
</dl>
<a name="ipady"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a>
<b>ipady</b>
<pre>
 public int ipady
</pre>
<dl>
  <dd> 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
 <code>(ipady&nbsp;*&nbsp;2)</code> pixels.
 <p>
 The default value is 0.<p>
  <dd><dl> 
    <dt> <b>See Also:</b>
    <dd> <a href="#ipadx">ipadx</a>
  </dl></dd>
</dl>
<a name="constructors"></a>
<h2>
  <img src="images/constructors.gif" width=231 height=38 alt="Constructors">
</h2>
<a name="GridBagConstraints"></a>
<a name="GridBagConstraints()"><img src="images/yellow-ball.gif" width=12 height=12 alt=" o "></a>
<b>GridBagConstraints</b>
<pre>
 public GridBagConstraints()
</pre>
<dl>
  <dd> Creates a <code>GridBagConstraint</code> object with
 all of its fields set to their default value.
<p>
</dl>
<a name="methods"></a>
<h2>
  <img src="images/methods.gif" width=151 height=38 alt="Methods">
</h2>
<a name="clone()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="clone"><b>clone</b></a>
<pre>
 public <a href="java.lang.Object.html#_top_">Object</a> clone()
</pre>
<dl>
  <dd> Creates a copy of this grid bag constraint.
<p>
  <dd><dl>
    <dt> <b>Returns:</b>
    <dd> a copy of this grid bag constraint
    <dt> <b>Overrides:</b>
    <dd> <a href="java.lang.Object.html#clone()">clone</a> in class <a href="java.lang.Object.html#_top_">Object</a>
  </dl></dd>
</dl>
<hr>
<pre>
<a href="packages.html">All Packages</a>  <a href="tree.html">Class Hierarchy</a>  <a href="Package-java.awt.html">This Package</a>  <a href="java.awt.Graphics.html#_top_">Previous</a>  <a href="java.awt.GridBagLayout.html#_top_">Next</a>  <a href="AllNames.html">Index</a></pre>
</body>
</html>
