import java.util.Vector;
import java.util.Enumeration;
import java.util.Random;
import java.math.*;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.io.*;


// This class represents the view of the Curling Frame
public class BilliardGame extends JFrame {
	      

      private BilliardPanel table; //billiard table panel
        
	  public BilliardGame (String title) {
	     super(title); 
		 setSize(300,500);
		 setDefaultCloseOperation(EXIT_ON_CLOSE);
		 setLocation(100,100);
         table = new BilliardPanel(this);                              
         setLayout(new FlowLayout(FlowLayout.CENTER, 0, 0));                              
         add(table); //add the whole table view
                
         update(); 
 
	}
 
       	
       	
    public void update() {              

	   repaint(); //repaint the window

    }
      
   

	public static void main(String args[]) {
		BilliardGame frame =  new BilliardGame("Off Da Bank");
		frame.setVisible(true); //show the frame
	}   
}