home *** CD-ROM | disk | FTP | other *** search
Java Source | 1998-03-11 | 2.4 KB | 61 lines |
- /*
- A basic extension of the java.applet.Applet class
- */
-
- import java.awt.*;
- import java.applet.*;
-
- //import symantec.itools.multimedia.Animator;
- import symantec.itools.multimedia.Animator;
- import symantec.itools.multimedia.*;
- public class Plane extends Applet {
-
- public void addNotify() {
- super.addNotify();
-
- // Take out this line if you don't use symantec.itools.net.RelativeURL
- symantec.itools.lang.Context.setDocumentBase(getDocumentBase());
-
- //{{INIT_CONTROLS
- setLayout(null);
- setSize(515,75);
- setFont(new Font("Dialog", Font.PLAIN, 12));
- setForeground(new Color(0));
- setBackground(new Color(16777215));
- animatorPlane = new symantec.itools.multimedia.Animator();
- animatorPlane.setPreviewMode(true);
- try {
- animatorPlane.setDelay(300);
- }
- catch(java.beans.PropertyVetoException e) { }
- try {
- java.net.URL[] tempURL = new java.net.URL[15];
- tempURL[0] = symantec.itools.net.RelativeURL.getURL("Images/plane01.gif");
- tempURL[1] = symantec.itools.net.RelativeURL.getURL("Images/plane02.gif");
- tempURL[2] = symantec.itools.net.RelativeURL.getURL("Images/plane03.gif");
- tempURL[3] = symantec.itools.net.RelativeURL.getURL("Images/plane04.gif");
- tempURL[4] = symantec.itools.net.RelativeURL.getURL("Images/plane05.gif");
- tempURL[5] = symantec.itools.net.RelativeURL.getURL("Images/plane06.gif");
- tempURL[6] = symantec.itools.net.RelativeURL.getURL("Images/plane07.gif");
- tempURL[7] = symantec.itools.net.RelativeURL.getURL("Images/plane08.gif");
- tempURL[8] = symantec.itools.net.RelativeURL.getURL("Images/plane09.gif");
- tempURL[9] = symantec.itools.net.RelativeURL.getURL("Images/plane10.gif");
- tempURL[10] = symantec.itools.net.RelativeURL.getURL("Images/plane11.gif");
- tempURL[11] = symantec.itools.net.RelativeURL.getURL("Images/plane12.gif");
- tempURL[12] = symantec.itools.net.RelativeURL.getURL("Images/plane13.gif");
- tempURL[13] = symantec.itools.net.RelativeURL.getURL("Images/plane14.gif");
- tempURL[14] = symantec.itools.net.RelativeURL.getURL("Images/plane15.gif");
- animatorPlane.setImageList(tempURL);
- }
- catch (java.net.MalformedURLException error) { }
- catch(java.beans.PropertyVetoException e) { }
- animatorPlane.setBounds(193,2,128,71);
- add(animatorPlane);
- //}}
- }
-
- //{{DECLARE_CONTROLS
- symantec.itools.multimedia.Animator animatorPlane;
- //}}
- }
-