I have an application that is used to analyze data. Most of the application is the ability to display charts based on the collected data and be able to export a large number of tasks in one batch operation. So far I have used JFreeChart, but I would like to use native JavaFX charts so that the exported charts still look the same as on the screen in the application.
I am on JavaFX 2.2.1 (jdk 7u6).
I can generate diagrams in one batch, but this means that I have to freeze the user interface (UI), since these diagrams should be displayed in the JavaFX Application Thread application. I am using Platform.runLater (new Runnable () {...}); a command for this, wrapped around the code that generates the diagrams.
If instead I complete each individual charting in Platform.runLater (new Runnable () {...}); The GUI does not freeze as before, but I also do not get feedback, because I canโt detect when each of the individual diagrams is generated (they start at a later stage, and I canโt control when this can happen, and, as far as I know there is no callback).
For this particular event, I would like to show a progress bar for the user, and I want this progress bar to be updated along with the actual charting.
Any suggestions or tips on how this can be achieved?
source share