Browse Source

update

main
fdai4581 2 years ago
parent
commit
bc5ef191b5
  1. 5
      src/main/java/BattleShip/GridGUI.java

5
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) {

Loading…
Cancel
Save