
/*------------------------------------------------------------------------*
 * Originally implemented by Scott Flinn, in association with the
 * Imager Graphics Laboratory at the University of British Columbia
 * (scottflinn@alumni.uwaterloo.ca).
 *
 * This source code may be freely distributed and modified for any purpose
 * as long as these introductory comments are not removed.  Please be
 * aware that this represents the author's initial experiments with the
 * Java platform and should not necessarily be considered good examples
 * of Java programming.
 *------------------------------------------------------------------------*/

/*------------------------------------------------------------------------*
 *
 * The WindowApplet class is intended to be used with the AppletStarter
 *  class to create applets in separate windows and threads.  AppletStarter
 *  creates instances of WindowApplet or its subclasses and puts them
 *  in a separate window.  WindowApplet is a pretty boring applet, so
 *  it should probably never be used directly.  Its subclasses can
 *  do whatever they like within the frame that WindowApplet provides.
 *
 *------------------------------------------------------------------------*/

import  java.awt.*;

/*-------------------------  Class WindowApplet  -------------------------*/

public class WindowApplet extends Frame
{
  protected AppletStarter  applet = null;

    /*--------------------------  init  ---------------------------*/

    public void init( AppletStarter applet )
    {
        // record id of AppletStarter instance that launched us
        this.applet = applet;

        // let it know that we are alive
        applet.appletLoaded();
    }
}

/*------------------------------------------------------------------------*/

