Re: call a method at intervals



If you are using Swing Applet you can use its Timer class
Have a look at http://java.sun.com/j2se/1.5.0/docs/api/javax/swing/Timer.html for details

rickbear wrote:
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?

- rick -

.