Unfortunately, I've lost the source ... so these links do not work
bounce.java - the applet

controller.java - a thread that keeps the applet moving