<AWT Dev> [9] Review request for 8163101: dual-screen issue with JMenu, JPopupMenu

Sergey Bylokhov Sergey.Bylokhov at oracle.com
Tue Oct 4 23:47:56 UTC 2016

On 29.09.16 23:40, Semyon Sadetsky wrote:
>> The usage of toolkit method here is incorrect, adding it again in this
>> patch is also incorrect. The usage of GC which you remove is correct
>> and should be preserved.
> I don't understand what you call correct and what incorrect. But "the
> usage of GC" results in unexpected behavior which may be only considered
> as incorrect by the user.
>> The problem that the popups do not work is in the way how bounds are
>> used. And this should be fixed.

Incorrect means that the popup code uses the size of the main screen 
even if the popup located on another screen. The bounds of the correct 
screen should be used instead, and this bounds can be accessed via 
Graphics config.

> "in the way how bounds are used"  what does it mean?

In current code the bounds of the graphics config are used incorrectly.

Best regards, Sergey.

More information about the awt-dev mailing list