Well, if it has to be Java, then you might want to look into these.
- Java Real-Time Systems (includes demo both real-time and non-real-timem, and JavaFX version of the charting application)
- Real-time Java application development using multicore systems
- Expedited Real-Time Task Graphs (This technology runs on Linux, but development can be done on any platform that supports Java 5.0 and Eclipse.)
- JavaFX - A Pie Chart Demo