You can see the Source Code for this applet.
This applet demonstrates polynomial interpolation of n+1 points using an
n degree polynomial (for n>=0). It uses an excellent chart library,
JavaChart, which is more oriented
towards homepage spiffing-up than actual practical applets. However, with
the help of another excellent program,
Mocha,
I was able to retrieve the API and use it.