Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*
  * HelpBox.java
  *
  * Created on April 15, 2002, 10:55 AM
  */
 package tools.tracesviewer;
 
 import java.awt.*;

Author(s):
Olivier Deruelle
Version:
1.2
public class HelpBox extends Dialog {
    Button ok;

    
Creates new HelpBox
    public HelpBox() {
        super(new Frame(), " Help "false);
        this.setBackground(.);
        this.setLayout(new BorderLayout());
         = new TextArea();
        .setEditable(false);
        // fill the help box
        .append(
            "National Institute of Standards and Technology\n"
                + "========================================\n"
                + "\n"
                + "NIST-SIP Trace viewer 1.1\n"
                + "========================================\n"
                + "\n"
                + "\n"
                + " Hit refresh  to get new trace data from the proxy. \n"
                + "If no traces appear at all, you should check if the proxy is started.\n"
                + "Once some SIP sessions are available, you can click directly on \n"
                + "an arrow representing a SIP message of your \n"
                + "choice, and see the text of the chosen SIP message. \n"
                + "If any small yellow bubbles appear on the top right of the SIP message, \n"
                + "you can click on it and see some extra informations logged by the proxy.\n"
                + "\n"
                + "\n"
                + "If you experience any problems please contact:\n"
                + "nist-sip-dev@antd.nist.gov\n"
                + "\n");
         = new Button(" Ok ");
        .setBackground(.);
        .setForeground(.);
        this.add(.);
        this.add(.);
        .addMouseListener(new MouseAdapter() {
            public void mouseClicked(MouseEvent e) {
                setVisible(false);
            }
        });
        this.addWindowListener(new WindowAdapter() {
            public void windowClosing(WindowEvent e) {
                setVisible(false);
            }
        });
        // width, height
        this.setSize(400, 400);
    }
New to GrepCode? Check out our FAQ X