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

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

Introduction

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

The text is from its open source code.

Constructor

GridLayout(int rows, int cols)
Creates a grid layout with the specified number of rows and columns.
GridLayout(int rows, int cols, int hgap, int vgap)
Creates a grid layout with the specified number of rows and columns.
GridLayout()
Creates a grid layout with a default of one column per component, in a single row.

Method

intgetColumns()
Gets the number of columns in this layout.
intgetHgap()
Gets the horizontal gap between components.
intgetRows()
Gets the number of rows in this layout.
intgetVgap()
Gets the vertical gap between components.
voidlayoutContainer(Container parent)
Lays out the specified container using this layout.
DimensionminimumLayoutSize(Container parent)
Determines the minimum size of the container argument using this grid layout.
DimensionpreferredLayoutSize(Container parent)
Determines the preferred size of the container argument using this grid layout.
voidremoveLayoutComponent(Component comp)
Removes the specified component from the layout.
voidsetColumns(int cols)
Sets the number of columns in this layout to the specified value.
voidsetHgap(int hgap)
Sets the horizontal gap between components to the specified value.
voidsetRows(int rows)
Sets the number of rows in this layout to the specified value.
voidsetVgap(int vgap)
Sets the vertical gap between components to the specified value.
StringtoString()
Returns the string representation of this grid layout's values.