summaryrefslogtreecommitdiff
path: root/base/src/main/java/bjc/utils/gui/layout/AutosizeLayout.java
blob: 0d835aa65a0dc0fdea3147d9758421b8f60fb534 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package bjc.utils.gui.layout;

import java.awt.GridLayout;

/**
 * A layout that simply holds one component that it auto-resizes whenever it is
 * resized.
 *
 * @author ben
 */
public class AutosizeLayout extends GridLayout {
	/* Version id for serialization. */
	private static final long serialVersionUID = -2495693595953396924L;

	/** Create a new auto-size layout. */
	public AutosizeLayout() {
		super(1, 1);
	}
}