FileDocCategorySizeDatePackage
AboutBox.javaAPI DocExample2795Sat Sep 12 03:01:00 BST 1998None

AboutBox

public class AboutBox extends Dialog

Fields Summary
Panel
panel1
XYLayout
xYLayout1
ImageControl
imageControl1
Label
label1
Label
label2
Label
label3
Label
label4
Button
button1
Constructors Summary
public AboutBox(Frame frame, String title, boolean modal)


         
    super(frame, title, modal);
    try {
      jbInit();
    }
    catch (Exception e) {
      e.printStackTrace();
    }
    add(panel1);
    pack();
  
public AboutBox(Frame frame, String title)

    this(frame, title, false);
  
public AboutBox(Frame frame)

    this(frame, "", false);
  
Methods Summary
voidbutton1_actionPerformed(java.awt.event.ActionEvent e)

     dispose();
  
private voidjbInit()

    xYLayout1.setWidth(266);
    xYLayout1.setHeight(192);
    label1.setText("Product Name");
    label2.setText("Version ...");
    label3.setText("Copyright ...");
    label4.setText("Comments ...");
    button1.setActionCommand("");
    button1.setLabel("OK");
    button1.addActionListener(new AboutBox_button1_actionAdapter(this));
    this.addWindowListener(new AboutBox_this_windowAdapter(this));
    panel1.setLayout(xYLayout1);
    panel1.add(imageControl1, new XYConstraints(12, 14, 98, 84));
    panel1.add(label1, new XYConstraints(121, 16, 118, 21));
    panel1.add(label2, new XYConstraints(121, 45, 118, 21));
    panel1.add(label3, new XYConstraints(121, 73, 118, 21));
    panel1.add(label4, new XYConstraints(10, 103, 321, 24));
    panel1.add(button1, new XYConstraints(83, 147, 98, 32));
  
public static voidmain(java.lang.String[] argv)

    DecoratedFrame frame = new DecoratedFrame();
    frame.show();
    new AboutBox(frame,"Test",true).show();
    System.exit(0);
  
voidthis_windowClosing(java.awt.event.WindowEvent e)

    dispose();