| LISTING 1: Opening Lines of the Wizard-Created boingi.java File
|
//***********************************************
// boingi.java:Applet
//
//***********************************************
import java.applet.*;
import java.awt.*;
//===============================================
// Main Class for applet boingi
//
//===============================================
public class boingi extends Applet implements
* Runnable
{
// THREAD SUPPORT:
//m_boingi
// the Thread object for the applet
//---------------------------------------
Threadm_boingi = null;
// ANIMATION SUPPORT:
//m_Graphics
// used for storing the applet's
// Graphics context
//m_Images[]
// the array of Image objects for the
// animation
//m_nCurrImage
// the index of the next image to be
// displayed
//m_ImgWidth
// width of each image
//m_ImgHeight
// height of each image
//m_fAllLoaded
// indicates whether all images have been
// loaded
//NUM_IMAGES
// number of images used in the
// animation
//------------------------------------------
private Graphicsm_Graphics;
private Imagem_Images[];
private int m_nCurrImage;
private int m_nImgWidth = 0;
private int m_nImgHeight = 0;
private booleanm_fAllLoaded = false;
private final int NUM_IMAGES = 18;
.
.
.
Note: The symbol * signals a wrapped line.