import java.awt.*;
import java.awt.event.*;


public class GUIBoard 
 extends Panel {




    /** create fields for each button of the board */
    protected Button[][] buttarray;

    /**create a constructor */
    
    protected GUIBoard(int x, int y)   {
        this.setLayout(new GridLayout(x,y));
        this.buttarray = new Button[x+1][y+1];
        for(int i = 1; i<=x; i++) {
            for(int j = 1; j<=y; j++) {
                this.buttarray[i][j] = new Button(i + "," + j);
                this.add(this.buttarray[i][j]);
                // action listeners....what?;
            } // for
        } // for
        

    }//main()
}//class


