[API Review] RT-27887: introduce a node to embed Swing into JavaFX

Scott Palmer swpalmer at gmail.com
Tue Jan 29 09:24:39 PST 2013


On 2013-01-29, at 10:53 AM, Tom Schindl <tom.schindl at bestsolution.at> wrote:

> Am 29.01.13 16:45, schrieb Anthony Petrov:
>> IMO this is wrong. I firmly believe that FX APIs should be callable on
>> either the FX Event Thread only, or any thread, depending on the API's
>> specification. Adding an FX API that can only be invoked on a specific
>> thread of another GUI toolkit doesn't seem right to me.
> 
> I agree with you and I understood Richards comment like this as well.
> JavaFX APIs must be callable always at least on the FX-Thread.
> 
> Tom

I agree as well.
Swing node will be constructed on Swing Event Thread, then passed to FX thread to be set on the Node.  Similar to how JFXPanel works now.

Scott



More information about the openjfx-dev mailing list