summaryrefslogtreecommitdiff
path: root/BJC-Utils2/src/main/java/bjc/utils/gui/SimpleInternalFrame.java
blob: afb498e270db8d2ee014bab0d1a45350c306a6b3 (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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
package bjc.utils.gui;

import javax.swing.JInternalFrame;

/**
 * A simple internal frame class
 *
 * @author ben
 *
 */
public class SimpleInternalFrame extends JInternalFrame {
	private static final long serialVersionUID = -2966801321260716617L;

	/**
	 * Create a new blank internal frame
	 */
	public SimpleInternalFrame() {
		super();
	}

	/**
	 * Create a new blank internal frame with a specific title
	 *
	 * @param title
	 *                The title of the internal frame
	 */
	public SimpleInternalFrame(final String title) {
		super(title);
	}

	protected void setupFrame() {
		setSize(320, 240);

		setResizable(true);

		setClosable(true);
		setMaximizable(true);
		setIconifiable(true);
	}
}