Search found 1 match

by rodry543
Mon Jan 13, 2020 9:45 am
Forum: JFreeChart
Topic: ChartViewer crashes JavaFX in case of multiple threads
Replies: 7
Views: 14694

Re: ChartViewer crashes JavaFX in case of multiple threads

A simple solution for Multiple Threads in JavaFX (a Timer in JavaFX to refresh a chart periodly, for example) could be these: public void initialize() { XYDataset dataset = createDataset(); JFreeChart chart = createChart(dataset); chartViewer.setChart(chart); Timer timer = new java.util.Timer(); tim...