problems with terminating certain execution

Hi,

I'm coding a domino game. every time i choose the "new game" menu, the game should restart.

the problem is that the execution of the last game doesn't stop running after clicking the "new game" menu. altho user interface is fine(dominoes get shuffled and dealed again), but there are actually two games running in the Runtime Environment simultaneously.

the excution is an instance of Class timer, so I guess it won't terminate untill it finds a winner or stalemate.

anyone can help?

thanks

[535 byte] By [Michaelfana] at [2007-10-2 18:02:30]
# 1
It depends on how the games are running. If they have started a timer, you need to stop the timer before starting a new game. I have found the hard way that swing timers don't stop when their enclosing objects are set to null (makes me miss destructors).
BaltimoreJohna at 2007-7-13 19:21:26 > top of Java-index,Security,Event Handling...