6263646566676869707172
for(int i=0;i<theBoard.getRows();i++) { for(int j=0;j<theBoard.getCols();j++) { JButton temp =theBoard.getCellButton(i,j); temp.addActionListener(new GridFunction(i,j,service)); } } setUp(theBoard,theBoard.getRows(),theBoard.getCols());
262728293031323334
for(int i=0;i<theBoard.getRows();i++) { for(int j=0;j<theBoard.getCols();j++) { JButton temp =theBoard.getCellButton(i,j); temp.addActionListener(new GridFunction(i,j,game)); } } }
272829303132333435
293031323334353637