18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
23 * questions.
24 */
25 package javax.swing;
26
27 import java.awt.BasicStroke;
28 import java.awt.Color;
29 import java.awt.Font;
30 import java.awt.Paint;
31 import javax.swing.border.*;
32
33 /**
34 * Factory class for vending standard <code>Border</code> objects. Wherever
35 * possible, this factory will hand out references to shared
36 * <code>Border</code> instances.
37 * For further information and examples see
38 * <a href="http://java.sun.com/docs/books/tutorial/uiswing/misc/border.html">How
39 to Use Borders</a>,
40 * a section in <em>The Java Tutorial</em>.
41 *
42 * @author David Kloba
43 */
44 public class BorderFactory
45 {
46
47 /** Don't let anyone instantiate this class */
48 private BorderFactory() {
49 }
50
51
52 //// LineBorder ///////////////////////////////////////////////////////////////
53 /**
54 * Creates a line border withe the specified color.
55 *
56 * @param color a <code>Color</code> to use for the line
57 * @return the <code>Border</code> object
58 */
|
18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
23 * questions.
24 */
25 package javax.swing;
26
27 import java.awt.BasicStroke;
28 import java.awt.Color;
29 import java.awt.Font;
30 import java.awt.Paint;
31 import javax.swing.border.*;
32
33 /**
34 * Factory class for vending standard <code>Border</code> objects. Wherever
35 * possible, this factory will hand out references to shared
36 * <code>Border</code> instances.
37 * For further information and examples see
38 * <a href="http://docs.oracle.com/javase/tutorial/uiswing/components/border.htmll">How
39 to Use Borders</a>,
40 * a section in <em>The Java Tutorial</em>.
41 *
42 * @author David Kloba
43 */
44 public class BorderFactory
45 {
46
47 /** Don't let anyone instantiate this class */
48 private BorderFactory() {
49 }
50
51
52 //// LineBorder ///////////////////////////////////////////////////////////////
53 /**
54 * Creates a line border withe the specified color.
55 *
56 * @param color a <code>Color</code> to use for the line
57 * @return the <code>Border</code> object
58 */
|