Applet runnable and sleep
This is a beginner question,
If i have an applet that is runnable, then how it is right to sleep it.
if i have
Thread t = new Thread ( this );
t.start();
on my applet code,
then is it ok to call like
t.sleep(1000);
or should or can i call also
Thread.sleep(1000);
are both just right.
---
Extra question, if i have an class on my applet, then is it ok to call
Thread.sleep(1000);
on this class to sleep applet thread.
Are these working on every computer, all seem to work on mine.
Re: Applet runnable and sleep
Since sleep() is a static method, calling it with the class name would read better/be less confusing.
Re: Applet runnable and sleep