addNotify();
addWindowListener(new Close());
setLayout(new BorderLayout());
Panel p = new Panel(new GridLayout(3, 1));
p.add(line1 = new Label());
p.add(line2 = new Label());
p.add(line3 = new Label());
add("North", p);
p = new Panel(new GridLayout(2, 1));
p.add(new Label("Username:"));
p.add(new Label("Password:"));
add("West", p);
p = new Panel(new GridLayout(2, 1));
p.add(user = new TextField(30));
p.add(pass = new TextField(30));
pass.addActionListener(new Ok());
pass.setEchoChar('*');
add("East", p);
GridBagLayout gb = new GridBagLayout();
p = new Panel(gb);
GridBagConstraints constr = new GridBagConstraints();
Panel pp = new Panel();
p.add(pp);
constr.gridwidth = GridBagConstraints.REMAINDER;
gb.setConstraints(pp, constr);
constr.gridwidth = 1;
constr.weightx = 1.0;