summaryrefslogtreecommitdiff
path: root/base/src/main/java/bjc/utils/gui/layout/VLayout.java
blob: 3ee99e829c9ccee7ead7f35e6bc486abb1d91ed9 (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(final int rows) {
		super(rows, 1);
	}
}