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

Anton V. Tarasov anton.tarasov at oracle.com
Tue Jan 29 06:10:45 PST 2013

On 28.01.2013 17:14, Anthony Petrov wrote:
> 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.

Ok, I did it.


> -- 
> best regards,
> Anthony

More information about the openjfx-dev mailing list