// Show my grid of cells. // -------------------------------------------------------------- public void display (Graphics g) { for (int r = 0; r < nRows; r++) { for (int c = 0; c < nCols; c++) { // REPLACE THIS LINE // theGrid[r][c].display((2+r)*Cell.size,(3+c)*Cell.size,g); // BY THE LINE THAT FOLLOWS theGrid[r][c].display((2+c)*Cell.size,(3+r)*Cell.size,g); } } }