import java.awt.*;
import fallingletterrefreshes;
import java.awt.event.*;
public class HelloWhiteBG extends java.applet.Applet implements Runnable, MouseListener, MouseMotionListener
{
fallingletterrefreshes[] letters;
int count, draggingletter;
Thread animator;
String greeting;
//same as other version, but this one shows how tacky it is when you refresh completely wrong on self-refreshing sprites
public void init()
{
greeting = "Hello, World! Wanna hear a joke? Ok, so there's these too guys, and the first one walks into a bar. The second one ducks. Yeah, yeah, I know, it's not that funny, but hey, did I say it would be?";
letters = new fallingletterrefreshes[greeting.length()];
for (int i=0; i=0)
letters[draggingletter].update(event.getX(), event.getY());
}
}