@ -141,6 +141,7 @@ public class Playfield {
}
MsG.tl.stop();
MsG.repaint();
@ -24,14 +24,19 @@ public class TimerLable extends JLabel {
public void reset() {
task.reset = true;
task.stop = false;
public void stop() {
task.stop = true;
class Helper extends TimerTask
{
public boolean reset;
public boolean stop;
public static int i = 0;
private TimerLable timerLable;
@ -40,6 +45,9 @@ class Helper extends TimerTask
public void run()
if(stop) {
return;
if(reset) {
reset = false;
timerLable.counter = 0;