I am writing an application in Java using JClass.
The program loads in various information defining the chart and the paints it to a canvas.
I then use the PSGr class (available on web) to write out a postscript file of the chart.
This all works fine, however, I want to be able to run a batch such that a list of charts are loaded in and dumped to postscript.
This works fine most of the time but sometimes. A chart is painted to screen smaller then it should be or with part of it drawn in the wrong position. As this only happens when the program runs through a batch it is difficult to know what the problem is or how to fix it. Does anybody have any ideas ?
It seems to be a problem with how fast it goes through them.
P.S.
I wrote a program a while ago where I overode the paint method of the java.awt.button class. I had a similar problem then, Sometimes (completely unpredictably) the image to be drawn on the button would appear in the wrong place.