FileDocCategorySizeDatePackage
SimpleApplet.javaAPI DocExample580Thu Oct 24 20:14:24 BST 2002None

SimpleApplet

public class SimpleApplet extends JApplet

Fields Summary
Constructors Summary
Methods Summary
public voidinit()

    JPanel p = new JPanel();
    p.setLayout(new GridLayout(2, 2, 2, 2));
    p.add(new JLabel("Username"));
    p.add(new JTextField());
    p.add(new JLabel("Password"));
    p.add(new JPasswordField());
    Container content = getContentPane();
    content.setLayout(new GridBagLayout()); // Used to center the panel
    content.add(p);