[API Review] RT-27887: introduce a node to embed Swing into JavaFX
Mario Torre
neugens at redhat.com
Tue Jan 29 09:30:11 PST 2013
Il giorno mar, 29/01/2013 alle 08.37 -0800, Richard Bair ha scritto:
> >> 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.
>
> That's correct, that was my sentiment as well.
I'm of this idea too.
I think the JavaDoc should only specify that usual threading
restrictions apply, and then make the method call on the Swing thread
under the hood (perhaps, but not needed, explicitly stating this).
Cheers,
Mario
More information about the openjfx-dev
mailing list