01: package net.xoetrope.builder.editor;
02:
03: import javax.swing.plaf.metal.DefaultMetalTheme;
04: import javax.swing.plaf.FontUIResource;
05: import java.awt.Font;
06:
07: /**
08: * Set the default fonts for dialogs etc...
09: * <p> Copyright (c) Xoetrope Ltd., 2002-2003</p>
10: * <p> $Revision: 1.1 $</p>
11: * <p> License: see License.txt</p>
12: */
13: public class XuiEditorTheme extends DefaultMetalTheme {
14: public String getName() {
15: return "XuiEditor";
16: }
17:
18: public FontUIResource getControlTextFont() {
19: return primaryFont;
20: }
21:
22: public FontUIResource getSystemTextFont() {
23: return secondaryFont;
24: }
25:
26: public FontUIResource getUserTextFont() {
27: return secondaryFont;
28: }
29:
30: public FontUIResource getMenuTextFont() {
31: return primaryFont;
32: }
33:
34: // private members
35: private FontUIResource primaryFont = new FontUIResource("Dialog",
36: Font.PLAIN, 10);
37: private FontUIResource secondaryFont = new FontUIResource("Dialog",
38: Font.PLAIN, 9);
39: }
|