FileDocCategorySizeDatePackage
StandardDialog1.javaAPI DocExample3023Sat Sep 12 03:01:00 BST 1998None

StandardDialog1

public class StandardDialog1 extends Dialog

Fields Summary
Panel
panel1
XYLayout
xYLayout1
BevelPanel
bevelPanel1
Button
button1
Button
button2
Constructors Summary
public StandardDialog1(Frame frame, String title, boolean modal)


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

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

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

    dispose();
  
voidbutton2_actionPerformed(java.awt.event.ActionEvent e)

    dispose();
  
private voidjbInit()

    xYLayout1.setWidth(320);
    xYLayout1.setHeight(243);
    button1.setLabel("OK");
    button1.addActionListener(new StandardDialog1_button1_actionAdapter(this));
    button2.setLabel("Cancel");
    button2.addActionListener(new StandardDialog1_button2_actionAdapter(this));
    this.addWindowListener(new StandardDialog1_this_windowAdapter(this));
    panel1.setLayout(xYLayout1);
    panel1.add(bevelPanel1, new XYConstraints(9, 10, 298, 191));
    panel1.add(button1, new XYConstraints(67, 211, 74, 25));
    panel1.add(button2, new XYConstraints(163, 211, 77, 25));
  
public static voidmain(java.lang.String[] argv)

    DecoratedFrame frame = new DecoratedFrame();
    frame.show();
    StandardDialog1 sd = new StandardDialog1(frame, "Test", true);
    sd.show();
    //Get any results here
    System.exit(0);
  
voidthis_windowClosing(java.awt.event.WindowEvent e)

    dispose();