/*
 * Created on Feb 8, 2005
 *
 */

import javax.swing.BoxLayout;
import javax.swing.JFrame;

/**
 * @author knorton
 */
public class Main {
    public static void main(String[] args) {
        JFrame frame = new JFrame("Bouncing Ball Simulation");
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

        BallPanel 	canvas = new BallPanel(800,800);
        ControlPanel	panel = new ControlPanel(canvas);
        
        frame.getContentPane().setLayout(
                new BoxLayout(frame.getContentPane(),BoxLayout.Y_AXIS));        
        frame.getContentPane().add(panel);
        frame.getContentPane().add(canvas);
        frame.pack();
        frame.show();
        canvas.init();
    }
}
