CSC 8310 Java Assignment: Controlling Animation
David Matuszek, Villanova University, Spring 2001

General Idea

Here is a working applet:


(If this Applet does not work for you, you need to install or upgrade your browser's Java plugin.) There is one control in this Applet: a Button that changes between "Start" and "Stop."

Your assignment is to add a bunch of controls to the above Applet. Each control will modify something about the animation.

Add to the Applet one or more of each of the following kinds of AWT Component:

Each Component should do something that affects the animation in some way (changing colors, sizes, shapes, directions, etc.). Each Component should be clearly labeled so that we can easily figure out what it is supposed to do, and easily tell whether it is working.

It's up to you to come up with different ways to change the animation. You don't even have to stay with a bouncing ball; your animation can be similar to this, or completely different. The important requirements are that

Use javadoc to document your program.

Useful Files

The source code for the above Applet is here. It requires an HTML file that provides parameters, like this file (right-click to download). Take this source code, study it (reading other people's code is a good way to learn a language), and use it as a starting point for doing your assignment.

An HTML page displaying the various types of "widgets" (Components) is here. The source code for the Widgets applet is here.

Additional Notes

Use only the AWT; do not use Swing.

Use the source code that has been given to you. Do not attempt to write a completely new animation program from scratch.

Lay out your components neatly. Your arrangement does not have to be beautiful, but it should not be a total mess. Try your Applet at different sizes (it's easy to change the size of the Applet if you use appletviewer) to make sure your components are reasonably neatly arranged at various sizes.

If you get anything from the web or elsewhere (graphics, sounds, music, etc.), that's fine, but you must include a reference to it in your program documentation. Always include references to material you get from elsewhere, not just in this assignment!

Turn in: Just a floppy. Everything (source code, Readme.txt, all class files, javadoc documentation) should be on the floppy. Be sure you can run your program from the floppy. The floppy should have a label on it, and your name should be on the label.

Due Dates: Monday, March 26 and Wednesday, March 28..