Example 18A -- National Debt Applet
The source.