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

Semyon Sadetsky semyon.sadetsky at oracle.com
Wed Oct 5 07:40:09 UTC 2016

On 05.10.2016 02:47, Sergey Bylokhov wrote:
> 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.
The thing is that the code produce the correct result, while the new 
code caused regression. Or you are insisting that the issue should be 
closed as not a bug?

More information about the awt-dev mailing list