Back

ColumnLayout Example

ColumnLayout is an implementation of the java.awt.LayoutManager interface which lays out components in a single column using either left, centered, right alignment. The pixel gap between components may also be specified. The ColumnLayout is similar to a java.awt.GridLayout with one column, the primary difference being that each cell is only as tall as it wants to be, rather than each cell having the same dimensions.

The Source

ColumnLayout.java
CLTest.java (this applet)


Push any of the buttons below for a frame with the corresponding ColumnLayout containing three components. Resize the frame to verify behavior.


Jean-Guy Speton
Last modified: Tue Feb 4 17:05:03 PST