FileDocCategorySizeDatePackage
Suspend.javaAPI DocExample4230Mon Apr 06 18:10:22 BST 1998None

Suspend

public class Suspend extends Applet

Fields Summary
private TextField
t
private Button
suspend
private Button
resume
private Suspendable
ss
Constructors Summary
Methods Summary
public voidinit()

     
    add(t);
    suspend.addActionListener(
      new ActionListener() {
        public 
        void actionPerformed(ActionEvent e) {
          ss.fauxSuspend();
        }
      });
    add(suspend);
    resume.addActionListener(
      new ActionListener() {
        public 
        void actionPerformed(ActionEvent e) {
          ss.fauxResume();
        }
      });
    add(resume);
  
public static voidmain(java.lang.String[] args)

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