import
java.awt.*;
public class
BallWorld extends Frame
{
//////////
variables ///////////
private
Ball myBall;
/////////////
methods //////////
static
public void main (String [] args)
{
BallWorld world = new BallWorld ();
world.show ();
}
private BallWorld ()
{
setSize(600, 400);
setTitle("Ball World");
myBall = new Ball(100, 100, 50, 4, 5);
}
public void paint(Graphics g)
{
myBall.paint( g );
pause( 2000 );
System.exit(0);
}
private void pause(int numMilliseconds)
{
try{ Thread.sleep( numMilliseconds ); } catch
(InterruptedException e){}
}
} // class
BallWorld