summaryrefslogtreecommitdiff
path: root/BJC-Utils2/src/main/java/bjc/utils/gui/SimpleTitledBorder.java
blob: e2fd390eb5e41e8fa7d6ad096a8e9abd41d095cf (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;

import javax.swing.border.EtchedBorder;
import javax.swing.border.TitledBorder;

/**
 * A simple border with a title attached to it.
 * 
 * @author ben
 *
 */
public class SimpleTitledBorder extends TitledBorder {
	// Version ID for serialization
	private static final long serialVersionUID = -5655969079949148487L;

	/**
	 * Create a new border with the specified title.
	 * 
	 * @param title
	 *            The title for the border.
	 */
	public SimpleTitledBorder(String title) {
		super(new EtchedBorder(), title);
	}
}