01: /*
02: * HelpBox.java
03: *
04: * Created on April 15, 2002, 10:55 AM
05: */
06: package tools.tracesviewer;
07:
08: import java.awt.*;
09: import java.awt.event.*;
10:
11: /**
12: *@version 1.2
13: *
14: *@author Olivier Deruelle <br/>
15: *
16: *
17: */
18: public class HelpBox extends Dialog {
19:
20: TextArea helpTextArea;
21: Button ok;
22:
23: /** Creates new HelpBox */
24: public HelpBox() {
25: super (new Frame(), " Help ", false);
26: this .setBackground(Color.white);
27: this .setLayout(new BorderLayout());
28: helpTextArea = new TextArea();
29: helpTextArea.setEditable(false);
30: // fill the help box
31: helpTextArea
32: .append("National Institute of Standards and Technology\n"
33: + "========================================\n"
34: + "\n"
35: + "NIST-SIP Trace viewer 1.1\n"
36: + "========================================\n"
37: + "\n"
38: + "\n"
39: + " Hit refresh to get new trace data from the proxy. \n"
40: + "If no traces appear at all, you should check if the proxy is started.\n"
41: + "Once some SIP sessions are available, you can click directly on \n"
42: + "an arrow representing a SIP message of your \n"
43: + "choice, and see the text of the chosen SIP message. \n"
44: + "If any small yellow bubbles appear on the top right of the SIP message, \n"
45: + "you can click on it and see some extra informations logged by the proxy.\n"
46: + "\n"
47: + "\n"
48: + "If you experience any problems please contact:\n"
49: + "nist-sip-dev@antd.nist.gov\n" + "\n");
50: ok = new Button(" Ok ");
51: ok.setBackground(Color.lightGray);
52: ok.setForeground(Color.black);
53: this .add(helpTextArea, BorderLayout.CENTER);
54: this .add(ok, BorderLayout.SOUTH);
55: ok.addMouseListener(new MouseAdapter() {
56: public void mouseClicked(MouseEvent e) {
57: setVisible(false);
58: }
59: });
60: this .addWindowListener(new WindowAdapter() {
61: public void windowClosing(WindowEvent e) {
62: setVisible(false);
63: }
64: });
65: // width, height
66: this .setSize(400, 400);
67: }
68:
69: }
|