Well, it's very simple:
1. About the sleep, you are right there is a sleep and you can use it,
the only difference is that is in milliseconds (but I guess it's not
very hard to multiply with 1000 your Seconds)
So you can use
------------------------------------------------------
Thread.sleep(Xseconds * 1000);
------------------------------------------------------
if you have only one thread running (the system one).
And don't forget to import
"import java.lang.Thread;"
2. Every applet has an AppletContext and every AppletContext has a
method called
"showDocument(URL)" which ask the browser to load the document
described by the URL
So you need to find out your appletcontext:
----------------------------------------------------
AppletContext ac = getAppletContext();
ac.showDocument(new URL("java.sun.com"));
-------------------------------------------------------
and then ask the browser to load your page or whatever.
I hope this helped you
Bye
Remus
CyberPsychotic wrote:
>
> Hello people,
> i am rather new to java, however, i looked thro the little amount of
> manuals related to java, but didn't find the answer. (at least with the
> level of my current expirience in java code).
>
> What i was lookin' for is the way, how could i create applet which
> basically would take 2 arguments : current time, and stop time, and
> then displaying it each second. (decreasing). When time is out, it would
> load page XX.
>
> i have 2 problems:
> 1. How would i measure time in seconds (on different platforms). Is there
> kind of sleep(Xseconds) calle?
> 2. How would i load some X-url into browser?
>
> I am sorry if questions sounds too newbish, but we all have to start
> somewhere:)
-------------------------------------------------------------------------
Remus Pereni
Technical University of Cluj-Napoca
Faculty of Automation and Computer Science, Industrial Informatics
Department
Student, last year
Observator Nr. 34 Camin VII Cam. 221 Cluj-Napoca 3400 Romania
E-mail: [EMAIL PROTECTED]
-------------------------------------------------------------------------