Browse Source

update

main
fdai4581 2 years ago
parent
commit
4f5368ed0e
  1. 4
      src/main/java/BattleShip/GridGUI.java

4
src/main/java/BattleShip/GridGUI.java

@ -74,7 +74,9 @@ public class GridGUI {
} }
} }
public boolean getClicked() {return clicked;} public boolean getClicked() {return clicked;}
public void setClicked() {
clicked = false;
}
public class MyCellListener implements ActionListener { public class MyCellListener implements ActionListener {
public void actionPerformed(ActionEvent a) { public void actionPerformed(ActionEvent a) {
if(!clicked) { if(!clicked) {

Loading…
Cancel
Save