From 7aa576245ca3c0a7a9b059b7da8771be21251f7c Mon Sep 17 00:00:00 2001 From: Thoumi Ngonga Brice Date: Tue, 7 Feb 2023 02:04:58 +0100 Subject: [PATCH] Update Implementation AIGridGUI class --- src/main/java/BattleShip/AIGridGUI.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/BattleShip/AIGridGUI.java b/src/main/java/BattleShip/AIGridGUI.java index 0137f24..0af94b9 100644 --- a/src/main/java/BattleShip/AIGridGUI.java +++ b/src/main/java/BattleShip/AIGridGUI.java @@ -489,7 +489,9 @@ public class AIGridGUI extends JPanel { } public void mouseExited(MouseEvent e) { - + //Unhighlight cells when mouse exited. + BSButton cell = (BSButton) e.getSource(); + highlightCells(cell, 2); } public void mouseClicked(MouseEvent e) {} public void mousePressed(MouseEvent e) {}