Look at the following site:
http://www.babylontoday.com/national_debt_clock.htm
It has a java applet that shows in real time the US national debt. I
would like to construct something similar for the Australian economy.
This means I will have to change some numbers around to make it fit
the Australian case.
How can I do this? Is there a website where I can create my own real-
time clock and then embed it to my website?
wizard of oz - 07 May 2008 09:37 GMT
Did you try contacting Mr(s) Tips? http://130.94.230.21/contact.htm
At the bottom of this page (http://130.94.230.21/debtclock.html) they invite
you to contact them to put the clock on your page - maybe they will tell you
how it works and supply you with the code.
> Look at the following site:
>
[quoted text clipped - 7 lines]
> How can I do this? Is there a website where I can create my own real-
> time clock and then embed it to my website?
Roedy Green - 07 May 2008 10:03 GMT
>http://www.babylontoday.com/national_debt_clock.htm
>
[quoted text clipped - 5 lines]
>How can I do this? Is there a website where I can create my own real-
>time clock and then embed it to my website?
Have a look at the code for SetClock. It has a background thread that
updates the time. You would use similar logic to recompute the debt
each second and repaint. I might also have used a SwingTimer or a
Timer which periodically executes a Runnable.run method.
see http://mindprod.com/products1.html#SETCLOCK
See http://mindprod.com/jgloss/timer.html
See http://mindprod.com/jgloss/calendar.html
for how to get get hold of the time in seconds from some epoch which
you will need for your formula.
If that is beyond your current ability, I will write you one for $50
AUD.

Signature
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com
Roedy Green - 07 May 2008 11:07 GMT
>It has a java applet that shows in real time the US national debt. I
>would like to construct something similar for the Australian economy.
>This means I will have to change some numbers around to make it fit
>the Australian case.
see http://mindprod.com/project/debtclock.html

Signature
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com