Modify the the Bouncy Applet example so that it produces a new bouncing ball to its right at every bounce, like the bouncing balls below. Note that there is no limit to the number of balls created (although there is a limit to the number that can be displayed on the screen). Solutions with less flicker will be given more credit. (We will learn how to eliminate flicker later in the course.)
Hint: Recursively create instances of a bouncing ball class.
<HTML><BODY> <H1>The BBouncy Applet</H1> <APPLET CODE="BBouncy.class" WIDTH=800 HEIGHT=200></APPLET> </BODY></HTML>
BE SURE TO UPLOAD YOUR .class FILES IN BINARY MODE, not Ascii!!
If your attempt to view your applet gets an Access Denied message, it may be because your pub sub-directory is not readable by all users. To correct this, login to System2 (e.g using telnet), and type the following command:
chmod a+rx pub pub/*