Please visit our sponsor

StatusScroller



import java.applet.*;
import java.awt.*;

public class statusscroller extends Applet implements Runnable {

public Thread animationthread = null;
public String message;

public void init()
{
    message="                              ";
    message+="                              ";
    message+="                              ";
    message+="                              ";
    message+="Anibal Wainstein's Basic Course ";
    message+="in Special Effects and Game development in Java(TM)";
}

public void start()
{
    if (animationthread == null)
    {
         animationthread = new Thread(this,"animationthread");
         animationthread.start();
    }
}

public void stop()
{
    if ((animationthread != null) && animationthread.isAlive())
        animationthread.stop();
    animationthread = null;
}

public void run()
{
while (true)
{
int L=message.length();
for (int i=0; i<L; i++)
{
showStatus(message.substring(i,L));
try {Thread.sleep(100);}
catch(InterruptedException e) {}
}
}
}
}

 


  This is a Mandomartis site: Other Mandomartis sites are:
 

 

 

 

 

Copyright © 1999 Scandinavia Online AB and Mandomartis Software Company