GridBagConstraints Members

GridBagConstraints Members

Class Overview | This Package | All Packages

Fields
Name Description
anchor This field is used when the component is smaller than its display area.
BOTH Resize the component both horizontally and vertically.
CENTER Put the component in the center of its display area.
EAST Put the component on the left side of its display area, centered vertically.
fill This field is used when the component's display area is larger than the component's requested size.
gridheight Specifies the number of cells in a column for the component's display area.
gridwidth Specifies the number of cells in a row for the component's display area.
gridx Specifies the cell at the left of the component's display area, where the leftmost cell has gridx = 0.
gridy Specifies the cell at the top of the component's display area, where the topmost cell has gridy = 0.
HORIZONTAL Resize the component horizontally but not vertically.
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.
ipadx This field specifies the internal padding of the component, how much space to add to the minimum width of the component.
ipady This field specifies the internal padding, that is, how much space to add to the minimum height of the component.
NONE Do not resize the component.
NORTH Put the component at the top of its display area, centered horizontally.
NORTHEAST Put the component at the top-right corner of its display area.
NORTHWEST Put the component at the top-left corner of its display area.
RELATIVE Specify 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).
REMAINDER Specify that this component is the last component in its column or row.
SOUTH Put the component at the bottom of its display area, centered horizontally.
SOUTHEAST Put the component at the bottom-right corner of its display area.
SOUTHWEST Put the component at the bottom-left corner of its display area.
VERTICAL Resize the component vertically but not horizontally.
weightx Specifies how to distribute extra horizontal space.
weighty Specifies how to distribute extra vertical space.
WEST Put the component on the left side of its display area, centered vertically.

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

Methods
Name Description
clone() Creates a copy of this grid bag constraint.