bouncing-ball
Using two instances of the BouncingBalls class, a subclass of SmartEllipse we add the capabilities of moving a specific number of pixels in the x and y directions as well as the ability to bounce off the walls.
Using a timer to initiate the ball movements as well as repainting the JPanel. The speed of the timer will specify the number of pixels the ball moves in the x and y directions.