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