summaryrefslogtreecommitdiff
path: root/BJC-Utils2/src/main/java/bjc/utils/gui/layout/VLayout.java
blob: 5951ba53968a680f2e845448e1dc9948c80dbba7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package bjc.utils.gui.layout;

import java.awt.GridLayout;

/**
 * A layout that lays out its components vertically, evenly sharing space
 * among them.
 * 
 * @author ben
 *
 */
public class VLayout extends GridLayout {
	// Version ID for serializations
	private static final long serialVersionUID = -6417962941602322663L;

	/**
	 * Create a new vertical layout with the specified number of rows.
	 * 
	 * @param rows
	 *            The number of rows.
	 */
	public VLayout(int rows) {
		super(rows, 1);
	}
}