StandardDialog2public class StandardDialog2 extends Dialog
Fields Summary |
---|
Panel | panel1 | XYLayout | xYLayout1 | BevelPanel | bevelPanel1 | Button | button1 | Button | button2 |
Constructors Summary |
---|
public StandardDialog2(Frame frame, String title, boolean modal)
super(frame, title, modal);
try {
jbInit();
}
catch (Exception e) {
e.printStackTrace();
}
add(panel1);
pack();
| public StandardDialog2(Frame frame, String title)
this(frame, title, false);
| public StandardDialog2(Frame frame)
this(frame, "", false);
|
Methods Summary |
---|
void | button1_actionPerformed(java.awt.event.ActionEvent e)
dispose();
| void | button2_actionPerformed(java.awt.event.ActionEvent e)
dispose();
| private void | jbInit()
xYLayout1.setWidth(403);
xYLayout1.setHeight(216);
button1.setLabel("OK");
button1.addActionListener(new StandardDialog2_button1_actionAdapter(this));
button2.setLabel("Cancel");
button2.addActionListener(new StandardDialog2_button2_actionAdapter(this));
this.addWindowListener(new StandardDialog2_this_windowAdapter(this));
panel1.setLayout(xYLayout1);
panel1.add(bevelPanel1, new XYConstraints(9, 10, 298, 191));
panel1.add(button1, new XYConstraints(314, 12, 74, 25));
panel1.add(button2, new XYConstraints(313, 43, 74, 25));
| public static void | main(java.lang.String[] argv)
DecoratedFrame frame = new DecoratedFrame();
frame.show();
StandardDialog2 sd = new StandardDialog2(frame, "Test", true);
sd.show();
//Get any results here
System.exit(0);
| void | this_windowClosing(java.awt.event.WindowEvent e)
dispose();
|
|