First of all...i'm just learning Java so this must be a trivial thing you someone who knows his stuff 
My program is available at http://40th.simplyadvanced.net/temp/Java/PiApplet.zip
**Problem Description**
-----------------------
I wrote an Applet that calculates Pi, and i want to make a graph showing the fluctuation of values as until it reaches a certain value close to 3.14...
I tried to takle the problem by drawing a line with it's height taken by pi*10 (or 100) so it would give 26 pixels at first, 33 and so on thus making a graph. Something though is going wrong.
Is there a simpler way of doing this (storing the values in an array or something and then passing it to a graph function i have not heard of yet??
I am using the 1.3.1 JDK btw
Any help appreciated thanx for bearing with me

My program is available at http://40th.simplyadvanced.net/temp/Java/PiApplet.zip
**Problem Description**
-----------------------
I wrote an Applet that calculates Pi, and i want to make a graph showing the fluctuation of values as until it reaches a certain value close to 3.14...
I tried to takle the problem by drawing a line with it's height taken by pi*10 (or 100) so it would give 26 pixels at first, 33 and so on thus making a graph. Something though is going wrong.
Is there a simpler way of doing this (storing the values in an array or something and then passing it to a graph function i have not heard of yet??
I am using the 1.3.1 JDK btw
Any help appreciated thanx for bearing with me