|
@ -40,7 +40,7 @@ public class GridGUI extends JPanel { |
|
|
allShips.add(battleship); |
|
|
allShips.add(battleship); |
|
|
allShips.add(aircraftCarrier); |
|
|
allShips.add(aircraftCarrier); |
|
|
|
|
|
|
|
|
for(int i = 1; i < (rows * columns); i++) { |
|
|
|
|
|
|
|
|
for(int i = 0; i < (rows * columns); i++) { |
|
|
BSButton b = new BSButton(); |
|
|
BSButton b = new BSButton(); |
|
|
b.setEnabled(false); |
|
|
b.setEnabled(false); |
|
|
b.setGridLocation(i); |
|
|
b.setGridLocation(i); |
|
|