From 40701ac566b0bdd7ec3b8078fd5b2ea26dda94ea Mon Sep 17 00:00:00 2001 From: fdai4581 Date: Tue, 7 Feb 2023 21:15:48 +0100 Subject: [PATCH] update --- src/main/java/BattleShip/GridGUI.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/main/java/BattleShip/GridGUI.java b/src/main/java/BattleShip/GridGUI.java index 7756d31..155bfee 100644 --- a/src/main/java/BattleShip/GridGUI.java +++ b/src/main/java/BattleShip/GridGUI.java @@ -1,5 +1,8 @@ package BattleShip; +import javax.swing.*; +import javax.swing.border.Border; +import java.awt.*; import java.util.ArrayList; import java.util.Random; @@ -11,6 +14,10 @@ public class GridGUI { int numOfGuesses = 0; int rows; int columns; + boolean clicked = false; + boolean endGame = false; + Color darkRed = new Color(100, 80, 0); + Border loweredBevel = BorderFactory.createLoweredBevelBorder(); Ship destroyer = new Ship(2, "destroyer"); Ship cruiser = new Ship(3, "cruiser");