Re: call a method at intervals




"rickbear" <rickbeardk@xxxxxxxxx> wrote in message
news:1146324798.128779.61940@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi!

I made an applet in one class.
Now I would like to call two of the methods in a certain timeinterval.
Something like javascript's setInterval("method()", milliseconds);

The one method has to run every minute and the other on every fifth
minute.
Is that possible without making more classes? and how?


Look into java.util.Timer


.