home *** CD-ROM | disk | FTP | other *** search
/ Symantec Visual Cafe for Java 2.5 / symantec-visual-cafe-2.5-database-dev-edition.iso / VCafe / ddetour.bin / Plane.java < prev    next >
Encoding:
Java Source  |  1998-03-11  |  2.4 KB  |  61 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. import symantec.itools.multimedia.Animator;
  10. import symantec.itools.multimedia.*;
  11. public class Plane extends Applet {
  12.  
  13.     public void addNotify() {
  14.         super.addNotify();
  15.  
  16.         // Take out this line if you don't use symantec.itools.net.RelativeURL
  17.         symantec.itools.lang.Context.setDocumentBase(getDocumentBase());
  18.  
  19.         //{{INIT_CONTROLS
  20.         setLayout(null);
  21.         setSize(515,75);
  22.         setFont(new Font("Dialog", Font.PLAIN, 12));
  23.         setForeground(new Color(0));
  24.         setBackground(new Color(16777215));
  25.         animatorPlane = new symantec.itools.multimedia.Animator();
  26.         animatorPlane.setPreviewMode(true);
  27.         try {
  28.             animatorPlane.setDelay(300);
  29.         }
  30.         catch(java.beans.PropertyVetoException e) { }
  31.         try {
  32.             java.net.URL[] tempURL = new java.net.URL[15];
  33.             tempURL[0] = symantec.itools.net.RelativeURL.getURL("Images/plane01.gif");
  34.             tempURL[1] = symantec.itools.net.RelativeURL.getURL("Images/plane02.gif");
  35.             tempURL[2] = symantec.itools.net.RelativeURL.getURL("Images/plane03.gif");
  36.             tempURL[3] = symantec.itools.net.RelativeURL.getURL("Images/plane04.gif");
  37.             tempURL[4] = symantec.itools.net.RelativeURL.getURL("Images/plane05.gif");
  38.             tempURL[5] = symantec.itools.net.RelativeURL.getURL("Images/plane06.gif");
  39.             tempURL[6] = symantec.itools.net.RelativeURL.getURL("Images/plane07.gif");
  40.             tempURL[7] = symantec.itools.net.RelativeURL.getURL("Images/plane08.gif");
  41.             tempURL[8] = symantec.itools.net.RelativeURL.getURL("Images/plane09.gif");
  42.             tempURL[9] = symantec.itools.net.RelativeURL.getURL("Images/plane10.gif");
  43.             tempURL[10] = symantec.itools.net.RelativeURL.getURL("Images/plane11.gif");
  44.             tempURL[11] = symantec.itools.net.RelativeURL.getURL("Images/plane12.gif");
  45.             tempURL[12] = symantec.itools.net.RelativeURL.getURL("Images/plane13.gif");
  46.             tempURL[13] = symantec.itools.net.RelativeURL.getURL("Images/plane14.gif");
  47.             tempURL[14] = symantec.itools.net.RelativeURL.getURL("Images/plane15.gif");
  48.             animatorPlane.setImageList(tempURL);
  49.         }
  50.         catch (java.net.MalformedURLException error) { }
  51.         catch(java.beans.PropertyVetoException e) { }
  52.         animatorPlane.setBounds(193,2,128,71);
  53.         add(animatorPlane);
  54.         //}}
  55.     }
  56.  
  57.     //{{DECLARE_CONTROLS
  58.     symantec.itools.multimedia.Animator animatorPlane;
  59.     //}}
  60. }
  61.