/* * Main.java * * Created on February 16, 2006, 4:11 PM * * * $ID$ * */ import javax.swing.*; import java.awt.*; import java.awt.event.*; /** *Outermost layer for the TicTacToe game. Implements the GUI, and *interfaces it with the board class. * * @author dgg */ public class Main extends JPanel { static board gameBoard = new board(); static int boardSize=gameBoard.currentBoard.length; static JButton boardButtons[][]=new JButton[boardSize][boardSize]; /** Build all our buttons in an array, then initializes our default settings for them */ public static void buildBoard(Container pane){ pane.setLayout (new GridLayout(boardSize,boardSize)); for (int i=0;i