import java.awt.EventQueue;
import javax.swing.JFrame;

public class BouncingBall{
	public static void main(String[] argv){
		EventQueue.invokeLater(
			new Runnable(){
				public void run(){
					JFrame bouncingBallFrame = new JFrame("A Bouncing Ball");
					bouncingBallFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
					bouncingBallFrame.setContentPane(new BouncingBallPanel(640, 480));
					bouncingBallFrame.pack();
					bouncingBallFrame.setVisible(true);
				}
			}		
		);
	}
}

