Moving Balls mini project using Java Applet

Write a program to develop a application in java applet which will show balls that will move across the screen .
In  Moving Balls using Java Applet project we have two balls moving perpendicular to each other . Also balls have some sort of animation which will change it’s color a regular intervals  . The code for this applet is simple and this code can be used as applet assignment in your academics . 

Sample code for Applet Animated Balls that will move regularly across the screen :

Now if you want to Change the speed of the Balls moving speed just change this Line …



Increase limit of sleep parameter for say  Thread.sleep(400) to decrease speed or for increasing speed decrease parameter value .

To set the size of screen of applet just change values of    he and wi in Above Code .