FileDocCategorySizeDatePackage
TextNew.javaAPI DocExample4742Mon Apr 06 18:10:22 BST 1998None

TextNew

public class TextNew extends Applet

Fields Summary
Button
b1
Button
b2
TextField
t1
TextField
t2
TextField
t3
String
s
Constructors Summary
Methods Summary
public voidinit()

     
    b1.addActionListener(new B1());
    b2.addActionListener(new B2());
    t1.addTextListener(new T1());
    t1.addActionListener(new T1A());
    t1.addKeyListener(new T1K());
    add(b1);
    add(b2);
    add(t1);
    add(t2);
    add(t3);
  
public static voidmain(java.lang.String[] args)

    TextNew applet = new TextNew();
    Frame aFrame = new Frame("TextNew");
    aFrame.addWindowListener(
      new WindowAdapter() {
        public void windowClosing(WindowEvent e) {
          System.exit(0);
        }
      });
    aFrame.add(applet, BorderLayout.CENTER);
    aFrame.setSize(300,200);
    applet.init();
    applet.start();
    aFrame.setVisible(true);