Im trying to move an object, but I want the object to move every couple of seconds.
I heared of the java script "time" or "timer"
But im not sure how it goes..

Thanks,

ej whats up i see you are talking about moving an object can you help me with my home work its about an matrix in wich an element moves around pleaseeeeeeeeeeeee if you can help me

ej whats up i see you are talking about moving an object can you help me with my home work its about an matrix in wich an element moves around pleaseeeeeeeeeeeee if you can help me

Please keep unrelated questions to their own thread. Also, homework help is given when effort is shown, so keep that in mind when you post a thread asking for help.

No, it's not javascipt.
It's Java language.
Im using an application called BlueJ.

Thanks anyway.

Does anyone know how to do that in Java language?

Read the API link that I posted for Swing Timer. There is a link "How to use Timers" in the documentation for that class. If you have futher questions about applying it, post them back here with the code you have so far.

This article has been dead for over six months. Start a new discussion instead.