home *** CD-ROM | disk | FTP | other *** search
/ Boot Disc 9 / boot-disc-1997-05.iso / Media / backup / sun / GroovyBoxMain.java < prev    next >
Text File  |  1997-03-10  |  1KB  |  72 lines

  1. /**
  2.  * This file was automatically generated.  Do not manually modify this file.
  3.  *
  4.  * Runtime vendor: SunSoft, Inc.
  5.  * Runtime version: 1
  6.  *
  7.  * Visual vendor: SunSoft, Inc.
  8.  * Visual version: 1
  9.  */
  10.  
  11.  
  12.  
  13. import sunsoft.jws.visual.rt.base.Group;
  14. import sunsoft.jws.visual.rt.base.MainHelper;
  15. import java.applet.Applet;
  16.  
  17. /**
  18.  * Generated Main class
  19.  *
  20.  * @version 1.20, 05/21/96
  21.  */
  22. public class GroovyBoxMain extends Applet {
  23.   /**
  24.    * Helper class for the generated main class.  This variable is only
  25.    * used when we are running as an applet.
  26.    */
  27.   private MainHelper helper;
  28.  
  29.   /**
  30.    * Called when application is run from the command line.
  31.    */
  32.   public static void main(String args[]) {
  33.     MainHelper helper = new MainHelper();
  34.     helper.checkVersion(1);
  35.  
  36.     Group group = new GroovyBox();
  37.     helper.main(group, args);
  38.   }
  39.  
  40.   /**
  41.    * Called when the applet is loaded.
  42.    */
  43.   public void init() {
  44.     helper = new MainHelper();
  45.     helper.checkVersion(1);
  46.  
  47.     Group group = new GroovyBox();
  48.     helper.init(this, group);
  49.   }
  50.  
  51.   /**
  52.    * Called whenever the applet's page is visited.
  53.    */
  54.   public void start(){
  55.     helper.start();
  56.   }
  57.  
  58.   /**
  59.    * Called by the browser when the user leaves the page.
  60.    */
  61.   public void stop() {
  62.     helper.stop();
  63.   }
  64.  
  65.   /**
  66.    * Called by the browser when the applet should be destroyed.
  67.    */
  68.   public void destroy() {
  69.     helper.destroy();
  70.   }
  71. }
  72.