From 4f5368ed0e71868fcbc086cbf0a4ed37eb21e4a9 Mon Sep 17 00:00:00 2001 From: fdai4581 Date: Tue, 7 Feb 2023 21:48:57 +0100 Subject: [PATCH] update --- src/main/java/BattleShip/GridGUI.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/BattleShip/GridGUI.java b/src/main/java/BattleShip/GridGUI.java index f7023f5..45401c3 100644 --- a/src/main/java/BattleShip/GridGUI.java +++ b/src/main/java/BattleShip/GridGUI.java @@ -74,7 +74,9 @@ public class GridGUI { } } public boolean getClicked() {return clicked;} - + public void setClicked() { + clicked = false; + } public class MyCellListener implements ActionListener { public void actionPerformed(ActionEvent a) { if(!clicked) {