Update JavaFX in JFXPanel while EDT is blocked
lehmann at media-interactive.de
Fri Jun 15 13:46:59 PDT 2012
Thanks to both of you. I'll try that next week.
On 15.06.2012 22:41, kimtopley at gmail.com wrote:
> The magic that you want is paintImmediately().
> Sent from my Verizon Wireless BlackBerry
> -----Original Message-----
> From: Richard Bair<richard.bair at oracle.com>
> Sender: openjfx-dev-bounces at openjdk.java.net
> Date: Fri, 15 Jun 2012 13:33:19
> To: Werner Lehmann<lehmann at media-interactive.de>
> Cc: openjfx-dev at openjdk.java.net<openjfx-dev at openjdk.java.net>
> Subject: Re: Update JavaFX in JFXPanel while EDT is blocked
>>> 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?
> OK, I was thinking the entire login screen would be a separate window and all javaFX, and then it would launch the Swing app and then you could hide the JavaFX window when login completed.
>>> 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?
> I've forgotten the Swing magic to be honest, I bet Jasper remembers (but I'm sure the web remembers if you look for it).
More information about the openjfx-dev