Dynamic Charts and EDT

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
bandi
Posts: 1
Joined: Thu Jun 26, 2008 5:44 am

Dynamic Charts and EDT

Post by bandi » Thu Jun 26, 2008 5:47 am

Hi,
It's safe to add data to timeseries in non EDT thread? Or it supposed to do in EDT?
thankx

Regards
Gusti

Taqua
JFreeReport Project Leader
Posts: 698
Joined: Fri Mar 14, 2003 3:34 pm
Contact:

Post by Taqua » Thu Jun 26, 2008 12:21 pm

Like with all UI components: All operations that manipulate a UI object or cause a redraw have to happen on the event-dispatcher thread.

Therefore: No, it is not safe to mess with the datasets outside the EDT.

Locked