A timed event.

S

Simon Teff

I have created some code that manipulated some figures but I would like the
code to run evey 10 seconds.
I know this is easy for some but I am new to Java.
Please help.

Simon.
 
R

Roedy Green

I have created some code that manipulated some figures but I would like the
code to run evey 10 seconds.

If you want a task to be run at some time in the future or repeatedly
at regular intervals, you can schedule it with the java.util.Timer
class. See also javax.swing.Timer.

They are pretty straightforward once you understand Threads.

see http://mindprod.com/jgloss/thread.html
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top