KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > swingwtx > swing > plaf > FontUIResource


1 /*
2    SwingWT
3    Copyright(c)2003-2004, R. Rawson-Tetley
4
5    For more information on distributing and using this program, please
6    see the accompanying "COPYING" file.
7
8    Contact me by electronic mail: bobintetley@users.sourceforge.net
9
10    $Log: FontUIResource.java,v $
11    Revision 1.1 2004/01/26 08:11:00 bobintetley
12    Many bugfixes and addition of SwingSet
13
14
15 */

16
17 package swingwtx.swing.plaf;
18
19 import swingwt.awt.Font;
20 import swingwtx.swing.plaf.UIResource;
21
22 public class FontUIResource extends Font implements UIResource {
23     public FontUIResource(String JavaDoc name, int style, int size) {
24     super(name, style, size);
25     }
26     public FontUIResource(Font font) {
27     super(font.getName(), font.getStyle(), font.getSize());
28     }
29 }
Popular Tags