KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > rero > dialogs > IRCOptions


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 rero.config.*;
11 import rero.dck.*;
12
13 public class IRCOptions extends DMain
14 {
15    public String JavaDoc getTitle()
16    {
17       return "IRC Options";
18    }
19
20    public String JavaDoc getDescription()
21    {
22       return "IRC Options";
23    }
24
25    public void setupDialog()
26    {
27       addBlankSpace();
28
29       addDialogGroup(new DGroup("Show in active...", 15)
30       {
31           public void setupDialog()
32           {
33              addCheckboxInput("active.reply" , ClientDefaults.active_option, "CTCP Replies", 'l');
34              addCheckboxInput("active.ctcp" , ClientDefaults.active_option, "CTCP Requests", 'q');
35              addCheckboxInput("active.notice" , ClientDefaults.active_option, "Notices", 'n');
36              addCheckboxInput("active.notify" , ClientDefaults.active_option, "Notify Signon/off", 's');
37              addCheckboxInput("active.query" , ClientDefaults.active_option, "Queries", 'q');
38              addCheckboxInput("active.whois" , ClientDefaults.active_option, "Whois Information", 'w');
39           }
40       });
41
42       addBlankSpace();
43
44       addCheckboxInput("option.showmotd" , ClientDefaults.option_showmotd, "Show MOTD", 'M');
45       addCheckboxInput("option.timestamp", ClientDefaults.option_timestamp, "Timestamp Events.", 'a');
46       addCheckboxInput("client.stripcodes" , ClientDefaults.client_stripcodes, "Strip formatting codes from IRC messages", 'f');
47    }
48 }
49
50
51
52
Popular Tags