KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > rero > dialogs > LoggingDialog


1 package rero.dialogs;
2
3 import java.awt.*;
4 import java.awt.event.*;
5
6 import javax.swing.*;
7 import javax.swing.event.*;
8
9 import java.util.*;
10 import java.net.*;
11
12 import rero.dck.items.*;
13 import rero.config.*;
14 import rero.dck.*;
15
16 import rero.client.dcc.*;
17
18 public class LoggingDialog extends DMain
19 {
20    public String JavaDoc getTitle()
21    {
22       return "Setup Logs";
23    }
24
25    public String JavaDoc getDescription()
26    {
27       return "Message Logging Setup";
28    }
29
30    public void setupDialog()
31    {
32       addBlankSpace();
33       addBlankSpace();
34
35       DGroup temp = addDialogGroup(new DGroup("Logging Options", 15)
36       {
37           public void setupDialog()
38           {
39
40
41       addBlankSpace();
42       DItem tempc = addDirectoryInput("log.saveto", ClientDefaults.log_saveto, "Log Directory: ", 'D', 10);
43
44       addBlankSpace();
45
46       DItem tempa = addCheckboxInput("log.strip" , ClientDefaults.log_strip, "Strip colors from text", 'S', FlowLayout.LEFT);
47       DItem tempb = addCheckboxInput("log.timestamp", ClientDefaults.log_timestamp, "Timestamp logged messages", 'T', FlowLayout.LEFT);
48       addBlankSpace();
49             }
50       });
51
52       addBlankSpace();
53
54       CheckboxInput boxed = addCheckboxInput("log.enabled", ClientDefaults.log_enabled, "Enable Logging", 'E', FlowLayout.CENTER);
55       boxed.addDependent(temp);
56
57       addBlankSpace();
58    }
59 }
60
Popular Tags