Hello guys,
I found here JFreeChart is not thread safe and I can't modify chart without care for it.
But I don't know how to handle it. I have random thread which can modify my chart anytime.
I think, I can add "synchronized" field before any chart modification,
but I need add it before chart paint too. And I don't know, where to put it.
Thank you for help
Jiri
ConcurrentModificationException explained solution
Re: ConcurrentModificationException explained solution
Or can I wait for Swing painting finish and in addition suspend/lock Swing engine during realize chart changes?