home *** CD-ROM | disk | FTP | other *** search
/ IT.SOFT 22 / ITSOFTCD_22.iso / pc / shareware22 / file / COOSCALE.ZIP / TEST.JAV < prev   
Encoding:
Text File  |  1998-02-12  |  1.3 KB  |  47 lines

  1. /*
  2.     A basic extension of the java.applet.Applet class
  3.  */
  4.  
  5. import java.awt.*;
  6. import java.applet.*;
  7.  
  8. import cooscale;
  9. public class test extends Applet
  10. {
  11.     public void init()
  12.     {
  13.         // Take out this line if you don't use symantec.itools.net.RelativeURL or symantec.itools.awt.util.StatusScroller
  14.         symantec.itools.lang.Context.setApplet(this);
  15.     
  16.         // This code is automatically generated by Visual Cafe when you add
  17.         // components to the visual environment. It instantiates and initializes
  18.         // the components. To modify the code, only use code syntax that matches
  19.         // what Visual Cafe can generate, or Visual Cafe may be unable to back
  20.         // parse your Java file into its visual environment.
  21.         //{{INIT_CONTROLS
  22.         setLayout(null);
  23.         setSize(426,266);
  24.         try {
  25.         ClassLoader cl = Class.forName("cooscale").getClassLoader();
  26.         cooscale1 = (cooscale) java.beans.Beans.instantiate(cl, "cooscale");
  27.         cooscale1.setSelfTest(true);
  28.         cooscale1.setLayout(null);
  29.         cooscale1.setBounds(108,84,216,60);
  30.         cooscale1.setBackground(new Color(12632256));
  31.         add(cooscale1);
  32.         cooscale1.start();
  33.         } catch (Exception e) { }
  34.         //}}
  35.         cooscale1.setApplet(this);
  36.     }
  37.     
  38.     //{{DECLARE_CONTROLS
  39.     cooscale cooscale1;
  40.     //}}
  41.     
  42.      public void stop()                                     
  43.      { 
  44.        cooscale1.cancelAll();
  45.      }
  46. }
  47.