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

Sergey Bylokhov Sergey.Bylokhov at oracle.com
Fri Sep 23 16:03:40 UTC 2016

On 23.09.16 18:46, Semyon Sadetsky wrote:
>>>>>> I do not get it. Toolkit.getScreenSize() should return the size of
>>>>>> the
>>>>>> primary screen which is default screen device in terms of
>>>>>> GraphicsEnvironment.
>>>>> No, it is a whole desktop size (joint virtual screen in case of
>>>>> multi-monitor). It has been working that way always.
>>>> Then this is a bug.
>>> Why?
>> Because it does not work as it should.
> Interesting... How did you conclude that?

Because it should return the bounds of the primary screen, not "combined 
virtual screen". Also its spec should be updated to mention units 
instead of real pixels which differs in HiDPI.

Best regards, Sergey.

More information about the awt-dev mailing list