Java javax.swing GroupLayout fields, constructors, methods, implement or subclass

Example usage for Java javax.swing GroupLayout fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for javax.swing GroupLayout.

The text is from its open source code.

Field

intDEFAULT_SIZE
Indicates the size from the component or gap should be used for a particular range value.
intPREFERRED_SIZE
Indicates the preferred size from the component or gap should be used for a particular range value.

Constructor

GroupLayout(Container host)
Creates a GroupLayout for the specified Container .

Method

ParallelGroupcreateParallelGroup(Alignment alignment)
Creates and returns a ParallelGroup with the specified alignment.
ParallelGroupcreateParallelGroup()
Creates and returns a ParallelGroup with an alignment of Alignment.LEADING .
SequentialGroupcreateSequentialGroup()
Creates and returns a SequentialGroup .
booleangetAutoCreateGaps()
Returns true if gaps between components are automatically created.
booleangetHonorsVisibility()
Returns whether component visibility is considered when sizing and positioning components.
LayoutStylegetLayoutStyle()
Returns the LayoutStyle used for calculating the preferred gap between components.
voidlinkSize(int axis, Component... components)
Forces the specified components to have the same size along the specified axis regardless of their preferred, minimum or maximum sizes.
voidreplace(Component existingComponent, Component newComponent)
Replaces an existing component with a new one.
voidsetAutoCreateContainerGaps(boolean autoCreateContainerPadding)
Sets whether a gap between the container and components that touch the border of the container should automatically be created.
voidsetAutoCreateGaps(boolean autoCreatePadding)
Sets whether a gap between components should automatically be created.
voidsetHonorsVisibility(boolean honorsVisibility)
Sets whether component visibility is considered when sizing and positioning components.
voidsetHorizontalGroup(Group group)
Sets the Group that positions and sizes components along the horizontal axis.
voidsetVerticalGroup(Group group)
Sets the Group that positions and sizes components along the vertical axis.