FileDocCategorySizeDatePackage
modeFrame11.javaAPI DocExample2129Mon Mar 24 02:03:20 GMT 1997None

modeTest11

public class modeTest11 extends Dialog

Fields Summary
TextField
user
TextField
pass
Constructors Summary
modeTest11(Frame parent)

        super (parent, "Mode Test", true);
        add ("North", new Label ("Please enter username/password"));
        Panel left = new Panel ();
        left.setLayout (new BorderLayout ());
        left.add ("North", new Label ("Username"));
        left.add ("South", new Label ("Password"));
        add ("West", left);
        Panel right = new Panel ();
        right.setLayout (new BorderLayout ());
        user = new TextField (15);
        pass = new TextField (15);
        pass.setEchoCharacter ('*");
        right.add ("North", user);
        right.add ("South", pass);
        add ("East", right);
        add ("South", new Button ("Okay"));
        resize (250, 125);
    
Methods Summary
public booleanhandleEvent(java.awt.Event e)

        if (e.id == Event.WINDOW_DESTROY) {
            dispose();
            return true;
        } else if ((e.target instanceof Button) &&
             (e.id == Event.ACTION_EVENT)) {
            hide();
        }
        return super.handleEvent (e);