public class Login extends Applet implements ActionListener {

PasswordWindow passWindow;

public void init() {}
public void destroy() {}
public void actionPerformed(ActionEvent event) {}

}

class PasswordWindow extends Frame implements ActionListener {

TextField userName;
JPasswordField passwordField;
AppletContext appletContext;

public PasswordWindow(AppletContext appletContext) {}
public void actionPerformed(ActionEvent event) {}

}

Login.java
PasswordGateway.java