Update JavaFX in JFXPanel while EDT is blocked

kimtopley at gmail.com kimtopley at gmail.com
Fri Jun 15 13:41:26 PDT 2012


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).

Richard


More information about the openjfx-dev mailing list