home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 1998 November
/
Chip_1998-11_cd.bin
/
tema
/
Cafe
/
WDETOUR.BIN
/
Plane.java
< prev
next >
Wrap
Text File
|
1998-03-11
|
2KB
|
56 lines
/*
A basic extension of the java.applet.Applet class
*/
import java.awt.*;
import java.applet.*;
import symantec.itools.multimedia.Animator;
public class Plane 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(520,79);
animatorPlane = new symantec.itools.multimedia.Animator();
animatorPlane.setPreviewMode(true);
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(192,0,128,71);
add(animatorPlane);
//}}
}
//{{DECLARE_CONTROLS
symantec.itools.multimedia.Animator animatorPlane;
//}}
}