diff --git a/src/main/java/BattleShip/AIGridGUI.java b/src/main/java/BattleShip/AIGridGUI.java index f19e441..2d81636 100644 --- a/src/main/java/BattleShip/AIGridGUI.java +++ b/src/main/java/BattleShip/AIGridGUI.java @@ -479,16 +479,7 @@ public class AIGridGUI extends JPanel { highlightCells(cell, 0); } - if(e.getButton() == MouseEvent.BUTTON3) { - //Toggle whether ship placement is vertical or horizontal. - vertical = !vertical; - for(BSButton bsb : buttons) { - if(bsb.getCellContents() == null) { - bsb.setBorder(defaultBorder); - } - } - highlightCells(cell, 0); - } + } public void mouseExited(MouseEvent e) { @@ -531,7 +522,7 @@ public class AIGridGUI extends JPanel { bsb.setBorder(loweredBevel); } else { //If mouse exited, unhighlight cells. - bsb.setBorder(compound); + bsb.setBorder(defaultBorder); } } } diff --git a/target/classes/BattleShip/AIGridGUI.class b/target/classes/BattleShip/AIGridGUI.class index a8a030f..c58c583 100644 Binary files a/target/classes/BattleShip/AIGridGUI.class and b/target/classes/BattleShip/AIGridGUI.class differ