import java.awt.Color;
import java.awt.Graphics;
import java.util.ArrayList;

import javax.swing.JFrame;
import javax.swing.JPanel;


/**
 * This is file BouncingBalls.java in project BouncingBalls.
 * @author Mary Smith  (change these names)
 * @author John Jones
 */

public class BouncingBalls extends JFrame {
    static ArrayList<Ball> list = new ArrayList<Ball>();

    public static void main(String args[]) {
        BouncingBalls window = new BouncingBalls();
        window.run();
    }
    
    void run() {
        
        // Declare any variables you need here
        
        // Create the panel and get it ready to draw on
        JPanel panel = new JPanel();  // Creates a panel to hold our drawing
        add(panel);                   // Puts the panel in the window
        setSize(500, 400);            // Sets the size of the window (user can change)
        setVisible(true);                 // Makes the window visible on the screen
        Graphics g = panel.getGraphics(); // Gets the Graphics context
        
        // Call a method here to create some Balls and put them
        // into the ArrayList.
        
        // Set up an infinite loop that runs through the following code:
        
            // Tell each figure to move a small amount
        
            // Tell each figure to draw itself
        
            // Pause for 1/20 second
             
            // Tell each figure to erase itself
       
        // End of loop
    }
    
    /**
     * Pauses the program for 50 milliseconds (1/20 of a second).
     */
    public void pause() {
        try { Thread.sleep(50); }
        catch (InterruptedException e) { }
    }
    
}


