| 
       FallingText 
  | 
    
 
      import java.applet.*;
import java.awt.*;
public class fallingtext extends Applet implements Runnable {
public Thread animationthread = null;
public String message;
public void init()
{
    message="Falling text is a cool effect!";
}
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()
{
    int L=message.length();
    //Create a string with a blankspace for the animation.
    String blankspace="                                 ";
    blankspace=blankspace+blankspace+blankspace;
    //Set the variable "mL" to the blankspace's length.
    int mL=blankspace.length();
    //The first loop will count up to the message's
    //length minus one.
    for (int i=0; i<L-1; i++)
         | 
  
|  
       
 
 
 
 
 
 Copyright © 1999 Scandinavia Online AB and Mandomartis Software Company  |