FileDocCategorySizeDatePackage
AboutDialog.javaAPI DocExample1702Sun Mar 02 22:32:06 GMT 1997bank.client

AboutDialog

public class AboutDialog extends Dialog implements WindowListener, ActionListener

Fields Summary
private Label
label
private Button
ok_button
Constructors Summary
public AboutDialog(Frame parent, boolean modal)

        super(parent, modal);
        setTitle("About First Imaginary Bank of Java");
        setLayout(null);
        addNotify();
        resize(insets().left + insets().right + 249,insets().top +
               insets().bottom + 150);
        label = new Label("A Basic Java  Application");
        label.reshape(insets().left + 41,insets().top + 36,166,21);
        add(label);
        ok_button = new Button("OK");
        ok_button.addActionListener(this);
        ok_button.reshape(insets().left + 93,insets().top + 83,66,27);
        add(ok_button);
        setResizable(false);
    
Methods Summary
public voidactionPerformed(java.awt.event.ActionEvent event)

        hide();
    
public synchronized voidshow()

        Rectangle bounds = getParent().bounds();
        Rectangle abounds = bounds();

        move(bounds.x + (bounds.width - abounds.width)/ 2,
             bounds.y + (bounds.height - abounds.height)/2);

        super.show();
    
public voidwindowActivated(java.awt.event.WindowEvent event)

    
public voidwindowClosed(java.awt.event.WindowEvent event)

    
public voidwindowClosing(java.awt.event.WindowEvent event)

    
public voidwindowDeactivated(java.awt.event.WindowEvent event)

    
public voidwindowDeiconified(java.awt.event.WindowEvent event)

    
public voidwindowIconified(java.awt.event.WindowEvent event)

    
public voidwindowOpened(java.awt.event.WindowEvent event)