Nevertheless, updating my chart takes a few seconds, and while the chart is updating, the rest of the application does not respond. An interesting observation was that the chart updates itself (2 or 3 times) after I stopped adding new data. It appears as if the repaint requests are queued.
This has also been mentioned in a post from skunk (http://www.jfree.org/phpBB2/viewtopic.p ... eue#p83648):
My question is how do I prevent repainting requests to be queued, repectively, how is it possible to check if the repaint queue is empty before setting chart.setNotify(true) again?In my experience, the most important thing is a design that never allows repaint requests to be queued. If 10 data updates arrive before the system has a chance to repaint the chart, you dont need to display the 9 stale states as long as the chart displays all the accumulated changes when it finally is repainted.
Thanks,
Kurt