Pick one of the following problems to do for your interclass problem. Ideal solutions to all of these include the use of an image. You would paint to the image and then draw that image when the paint method is called. They can all be done without that, but that would make them more functional.

1. Bouncing Ball - Make an applet that shows a ball bouncing. Use a JTimer to perform the animation.

2. Scrolling Text - Make an applet that will scroll a line of text across from right to left. Once it gets off the edge on the left it should repeat. Use a JTimer to perform the animation.

3. Color Paint (keys) - For this I want you to write an applet that "paints" when the mouse is clicked (if you want you can make it happen for dragging to). It can just draw a small rectangle or circle each time at the location of the mouse. The color it paints with will vary based on keys the user hits. You can decide what keys give what colors. For example, if the user hits the R key then it should start drawing in red.

4. Shape Painting (keys) - This is just like the previous problem except that instead of varying what color is painted, the user can change what shape is painted. At the very least you should have a square and a circle as options. So if the user hits S then the clicks draw squares. If they hit C it draws circles. Rectangles and ovals would be simple to implement as well, but aren't required.