Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*
  * ScriptFrame.java
  *
  * Created on April 30, 2002, 11:50 AM
  */
 package tools.tracesviewer;
 
 import java.awt.*;

Author(s):
deruelle
Version:
public class ScriptFrame extends Dialog {
    public TextArea infoTextArea;
    public Container container;
    public Button ok;

    
Creates new ScriptFrame
    public ScriptFrame() {
        super(new Frame(), " Auxiliary information "false);
        initComponents();
    }
    public void initComponents() {
        setLayout(new BorderLayout());
        setBackground(.);
        setSize(512, 384);

        
/
         = new TextArea();
        .setEditable(false);
         = new Button("  Ok  ");
        .setBackground(.);
        .setForeground(.);
        add(.);
        .addMouseListener(new MouseAdapter() {
            public void mouseClicked(MouseEvent e) {
                setVisible(false);
                dispose();
            }
        });
        this.addWindowListener(new WindowAdapter() {
            public void windowClosing(WindowEvent e) {
                setVisible(false);
                dispose();
            }
        });
        setVisible(false);
    }
    public void setText(String hostString text) {
        setTitle("Auxiliary information for " + host);
        .setText(text);
    }
New to GrepCode? Check out our FAQ X