KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > rero > dialogs > FontDialog


1 package rero.dialogs;
2
3 import java.awt.*;
4 import java.awt.event.*;
5
6 import javax.swing.*;
7 import javax.swing.table.*;
8 import javax.swing.event.*;
9
10 import java.util.*;
11 import rero.config.*;
12
13 import rero.dck.*;
14 import rero.dck.items.*;
15
16 public class FontDialog extends DMain
17 {
18    public String JavaDoc getTitle()
19    {
20       return "Font Setup";
21    }
22
23    public String JavaDoc getDescription()
24    {
25       return "Font Settings";
26    }
27
28    public void setupDialog()
29    {
30       addBlankSpace();
31       addBlankSpace();
32       addBlankSpace();
33       addBlankSpace();
34       addBlankSpace();
35     
36       addLabelNormal("Client Font:", FlowLayout.LEFT);
37       addFontInput("ui.font", ClientDefaults.ui_font);
38
39       addBlankSpace();
40
41       addCheckboxInput("ui.antialias", ClientDefaults.ui_antialias, "Enable text anti-aliasing", 'A', FlowLayout.CENTER);
42
43       addBlankSpace();
44
45       addCharsetInput("client.encoding", "Use Charset:", 'c', 75);
46
47       addBlankSpace();
48       addBlankSpace();
49       addBlankSpace();
50       addBlankSpace();
51    }
52 }
53
54
55
56
Popular Tags