Render charts in background
796425Nov 5 2012 — edited Nov 13 2012Hello,
I have an application that is used for data analysis. A big part of the application is the ability to be able to show charts based on the data assembled, and to be able to export a large number of tasks in one batch-operation. Up until now I have used JFreeChart, but I would like to use the native JavaFX Charts. I am on JavaFX 2.2.1 (IIRC).
I am able to generate the charts in one batch, but that means that I have to freeze the User Interface (UI), as these charts have to be rendered on the JavaFX Application Thread.
I have tried using Platform.runLater(), but then I am running into the issue with feedback, as I would also like to update a progress bar throughout the process.
Any suggestions or hints as to how this can be achieved ?