|
@ -80,6 +80,11 @@ public class GridGUI { |
|
|
public boolean getEndGame() { |
|
|
public boolean getEndGame() { |
|
|
return endGame; |
|
|
return endGame; |
|
|
} |
|
|
} |
|
|
|
|
|
public void setEndGame() { |
|
|
|
|
|
for(JButton j : buttons){ |
|
|
|
|
|
j.setEnabled(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) { |
|
|