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

Anthony Petrov anthony.petrov at oracle.com
Mon Jan 28 05:14:41 PST 2013


On 01/28/13 11:37, Anton V. Tarasov wrote:
> On 25.01.2013 19:31, Anthony Petrov wrote:
>> On 1/25/2013 19:18, Scott Palmer wrote:
>>>>> What will such heavyweight popups use as a parent window? Will we
>>>>> be plagued with the problem of them not respecting the window
>>>>> hierarchy as popups in a JFXPanel have in the past?
>>>> Popups have a very nice peculiarity that masks the problem: they
>>>> hide whenever you click somewhere else. So you can't actually notice
>>>> the z-order issue even if they don't have a proper owner window set.
>>>> E.g. this is how this currently works for JFXPanel (at least in FX 8).
>
> Clicking on the stage title doesn't close the popup, unless the event is
> specially handled (which is not yet implemented). So, at least there's
> an issue with torn-off popups when moving a stage with its title. (I
> think it's solvable).

I think we should try and implement this in the initial implementation 
of SwingNode. This is a very annoying bug, and the solution is 
relatively simple - delegate the grab/ungrab requests for the Swing 
"frame" to FX, and send the UNGRAB event from FX back to Swing. This 
should fix 99% problems with popups.

--
best regards,
Anthony


More information about the openjfx-dev mailing list