home *** CD-ROM | disk | FTP | other *** search
- /*
- A basic extension of the java.applet.Applet class
- */
-
- import java.awt.*;
- import java.applet.*;
-
- import cooscale;
- public class test extends Applet
- {
- public void init()
- {
- // Take out this line if you don't use symantec.itools.net.RelativeURL or symantec.itools.awt.util.StatusScroller
- symantec.itools.lang.Context.setApplet(this);
-
- // This code is automatically generated by Visual Cafe when you add
- // components to the visual environment. It instantiates and initializes
- // the components. To modify the code, only use code syntax that matches
- // what Visual Cafe can generate, or Visual Cafe may be unable to back
- // parse your Java file into its visual environment.
- //{{INIT_CONTROLS
- setLayout(null);
- setSize(426,266);
- try {
- ClassLoader cl = Class.forName("cooscale").getClassLoader();
- cooscale1 = (cooscale) java.beans.Beans.instantiate(cl, "cooscale");
- cooscale1.setSelfTest(true);
- cooscale1.setLayout(null);
- cooscale1.setBounds(108,84,216,60);
- cooscale1.setBackground(new Color(12632256));
- add(cooscale1);
- cooscale1.start();
- } catch (Exception e) { }
- //}}
- cooscale1.setApplet(this);
- }
-
- //{{DECLARE_CONTROLS
- cooscale cooscale1;
- //}}
-
- public void stop()
- {
- cooscale1.cancelAll();
- }
- }
-