Update JavaFX in JFXPanel while EDT is blocked
Werner Lehmann
lehmann at media-interactive.de
Fri Jun 15 12:51:12 PDT 2012
Hi Richard,
On 15.06.2012 21:44, Richard Bair wrote:
> in the future you might actually not have two GUI toolkit threads at
> all (the upside of which would be no more SwingUtilities.invokeLater
> / Platform.runLater calls).
That will definitely simplify/remove some boilerplate. And I guess, it
will also contribute to making the UI more responsive.
> Probably showing JavaFX in its own stage is the best approach?
Well, the stage is shown as part of a JFrame. So I can only think of a
JavaFX Popup in just the right position. Which will be fun when users
start to resize or move the window... Or did you have something else in
mind?
> break up the Swing init to occur over multiple events or force
> rendering at certain points
I'd recommend the former to myself but it is not going to happen soon.
Legacy code. How can I force rendering?
Rgds
Werner
More information about the openjfx-dev
mailing list