This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I'm using the JMathPlot library to produce a simple graph, in this case it's a 3D which is updated for every iteration in the for loop. However, the speed in which it loops I'm getting:
Which to my understanding is something to do with the AWT thread and the main thread not getting along. I know that I need to update the graphic thread in a special way, just not sure how. Here is my code, if anyone could suggest how I update the plot (repaint, I guess) without the error, that would be great.