home *** CD-ROM | disk | FTP | other *** search
/ Chip 1998 November / Chip_1998-11_cd.bin / tema / Cafe / WDETOUR.BIN / Plane.java < prev    next >
Text File  |  1998-03-11  |  2KB  |  56 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 symantec.itools.multimedia.Animator;
  9. public class Plane 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(520,79);
  24.         animatorPlane = new symantec.itools.multimedia.Animator();
  25.         animatorPlane.setPreviewMode(true);
  26.         try {
  27.             java.net.URL[] tempURL = new java.net.URL[15];
  28.             tempURL[0] = symantec.itools.net.RelativeURL.getURL("Images/plane01.gif");
  29.             tempURL[1] = symantec.itools.net.RelativeURL.getURL("Images/plane02.gif");
  30.             tempURL[2] = symantec.itools.net.RelativeURL.getURL("Images/plane03.gif");
  31.             tempURL[3] = symantec.itools.net.RelativeURL.getURL("Images/plane04.gif");
  32.             tempURL[4] = symantec.itools.net.RelativeURL.getURL("Images/plane05.gif");
  33.             tempURL[5] = symantec.itools.net.RelativeURL.getURL("Images/plane06.gif");
  34.             tempURL[6] = symantec.itools.net.RelativeURL.getURL("Images/plane07.gif");
  35.             tempURL[7] = symantec.itools.net.RelativeURL.getURL("Images/plane08.gif");
  36.             tempURL[8] = symantec.itools.net.RelativeURL.getURL("Images/plane09.gif");
  37.             tempURL[9] = symantec.itools.net.RelativeURL.getURL("Images/plane10.gif");
  38.             tempURL[10] = symantec.itools.net.RelativeURL.getURL("Images/plane11.gif");
  39.             tempURL[11] = symantec.itools.net.RelativeURL.getURL("Images/plane12.gif");
  40.             tempURL[12] = symantec.itools.net.RelativeURL.getURL("Images/plane13.gif");
  41.             tempURL[13] = symantec.itools.net.RelativeURL.getURL("Images/plane14.gif");
  42.             tempURL[14] = symantec.itools.net.RelativeURL.getURL("Images/plane15.gif");
  43.             animatorPlane.setImageList(tempURL);
  44.         }
  45.         catch (java.net.MalformedURLException error) { }
  46.         catch(java.beans.PropertyVetoException e) { }
  47.         animatorPlane.setBounds(192,0,128,71);
  48.         add(animatorPlane);
  49.         //}}
  50.     }
  51.     
  52.     //{{DECLARE_CONTROLS
  53.     symantec.itools.multimedia.Animator animatorPlane;
  54.     //}}
  55. }
  56.