Anders Kviback wrote:
...
This happends since I stop the timer and setDelay to 3000 ms.(line 47 - 52) But as you can see I restart() the timer again and I thought that the timer should jump back again to 50 ms - so that the balls starts to bounce fast again, but they don't. I've tried different scenarios here with setInitialDelay and so on but nothing works correct. How do I get back to a delay in the timer of 50 ms?
Anders
( We don't have to bother about the text now.)At evenly intervalls(jämna mellanrum) the footballfield shall be updated and all the balls shall be painted out with a piece of text that shows how many balls that we have on the field for the moment.
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
Did you see how Paul cut 87% off of his electric heat bill with 82 watts of micro heaters? |