Class awt.RowColLayout
All Packages This Package Previous Next
Class awt.RowColLayout
java.lang.Object
|
+----awt.ContainerLayout
|
+----awt.GapsLayout
|
+----awt.RowColLayout
-
public class
RowColLayout
-
extends GapsLayout
RowColLayout arranges components in rows and columns.
-
Version:
-
1.18 17 Feb 1995
-
Author:
-
Arthur van Hoff, Sami Shaio
-
oneColumn
-
-
splitHorz
-
-
splitVert
-
-
RowColLayout(int, int)
-
Constructor, rows can be 0, meaning any
number of rows.
-
RowColLayout(int, int, boolean)
-
Constructor, rows can be 0, meaning any number of rows.
-
getPreferredSize(Container)
-
Preferred Dimension
-
layout(Container)
-
Layout the container
oneColumn
public static RowColLayout oneColumn
splitVert
public static RowColLayout splitVert
splitHorz
public static RowColLayout splitHorz
RowColLayout
public RowColLayout(int pRows,
int pCols)
-
Constructor, rows can be 0, meaning any
number of rows.
RowColLayout
public RowColLayout(int pRows,
int pCols,
boolean packed)
-
Constructor, rows can be 0, meaning any number of rows. If
packed is true then columns will vary in width according to the
widest member in each column.
-
Parameters:
-
pRows
-
the number of rows, can be 0 for an arbitrary number.
-
pCols
-
the number of columns.
-
packed
-
if true then each column will have the width of
its widest member rather than the width of the widest member for
all the columns.
getPreferredSize
public Dimension getPreferredSize(Container pTarget)
-
Preferred Dimension
-
Overrides:
-
getPreferredSize in class ContainerLayout
layout
public void layout(Container pTarget)
-
Layout the container
-
Overrides:
-
layout in class ContainerLayout
All Packages This Package Previous Next