FileDocCategorySizeDatePackage
SimpleSaver.javaAPI DocExample854Tue Jun 03 23:32:40 BST 1997None

SimpleSaver

public class SimpleSaver extends Applet

Fields Summary
Constructors Summary
Methods Summary
public voidinit()

      Button b = new Button("Beans Book");
      b.setFont(new Font("System", Font.BOLD, 36));
      add(b);
      try
      {
         FileOutputStream f = new FileOutputStream("Saver.tmp");
         ObjectOutput s = new ObjectOutputStream(f);
         s.writeObject(b);
         s.flush();
      }
      catch (Exception e)
      {
        System.out.println(e);
      }