From bc5ef191b585d44bd19d6b69db9a76ba461a7774 Mon Sep 17 00:00:00 2001 From: fdai4581 Date: Tue, 7 Feb 2023 21:51:27 +0100 Subject: [PATCH] update --- src/main/java/BattleShip/GridGUI.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/BattleShip/GridGUI.java b/src/main/java/BattleShip/GridGUI.java index 9b8c21a..5a9b32a 100644 --- a/src/main/java/BattleShip/GridGUI.java +++ b/src/main/java/BattleShip/GridGUI.java @@ -80,6 +80,11 @@ public class GridGUI { public boolean getEndGame() { return endGame; } + public void setEndGame() { + for(JButton j : buttons){ + j.setEnabled(false); + } + } public class MyCellListener implements ActionListener { public void actionPerformed(ActionEvent a) { if(!clicked) {