Java java.awt GridBagConstraints fields, constructors, methods, implement or subclass

Example usage for Java java.awt GridBagConstraints fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for java.awt GridBagConstraints.

The text is from its open source code.

Subclass

java.awt.GridBagConstraints has subclasses.
Click this link to see all its subclasses.

Field

intRELATIVE
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 ).
intREMAINDER
Specifies that this component is the last component in its column or row.
intNONE
Do not resize the component.
intBOTH
Resize the component both horizontally and vertically.
intHORIZONTAL
Resize the component horizontally but not vertically.
intVERTICAL
Resize the component vertically but not horizontally.
intCENTER
Put the component in the center of its display area.
intNORTH
Put the component at the top of its display area, centered horizontally.
intNORTHEAST
Put the component at the top-right corner of its display area.
intEAST
Put the component on the right side of its display area, centered vertically.
intSOUTHEAST
Put the component at the bottom-right corner of its display area.
intSOUTH
Put the component at the bottom of its display area, centered horizontally.
intSOUTHWEST
Put the component at the bottom-left corner of its display area.
intWEST
Put the component on the left side of its display area, centered vertically.
intNORTHWEST
Put the component at the top-left corner of its display area.
intPAGE_START
Place the component centered along the edge of its display area associated with the start of a page for the current ComponentOrientation .
intPAGE_END
Place the component centered along the edge of its display area associated with the end of a page for the current ComponentOrientation .
intLINE_START
Place the component centered along the edge of its display area where lines of text would normally begin for the current ComponentOrientation .
intLINE_END
Place the component centered along the edge of its display area where lines of text would normally end for the current ComponentOrientation .
intFIRST_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 ComponentOrientation .
intFIRST_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 ComponentOrientation .
intLAST_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 ComponentOrientation .
intLAST_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 ComponentOrientation .
intBASELINE
Possible value for the anchor field.
intBASELINE_LEADING
Possible value for the anchor field.
intABOVE_BASELINE
Possible value for the anchor field.
intABOVE_BASELINE_LEADING
Possible value for the anchor field.

Constructor

GridBagConstraints()
Creates a GridBagConstraint object with all of its fields set to their default value.
GridBagConstraints(int gridx, int gridy, int gridwidth, int gridheight, double weightx, double weighty, int anchor, int fill, Insets insets, int ipadx, int ipady)
Creates a GridBagConstraints object with all of its fields set to the passed-in arguments.

Method

Objectclone()
Creates a copy of this grid bag constraint.