import java.awt.*;
import fallingletter;
import java.awt.event.*;
//this is the same as HelloRunnable except with a really long string
public class HelloRunnableJoke extends java.applet.Applet implements Runnable, MouseListener, MouseMotionListener
{
fallingletter[] letters;
int count, draggingletter;
Thread animator;
String greeting;
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 fallingletter[greeting.length()];
for (int i=0; i=0)
letters[draggingletter].update(event.getX(), event.getY());
}
}