<AWT Dev> [9] Review request for 8163101: dual-screen issue with JMenu, JPopupMenu
Sergey Bylokhov
Sergey.Bylokhov at oracle.com
Wed Aug 31 18:18:41 UTC 2016
On 31.08.16 17:18, Semyon Sadetsky wrote:
> Toolkit.getDefaultToolkit().getScreenSize()
>
> was replaced by
>
> graphicsConfig.getBounds();
>
> that returns a particular screen area which is not the same as the joint
> screen area in case of Xinerama multi-monitor configuration.
Can you please clarify what is the difference between two methods in
this bug? Toolkit.getScreenSize() is related to the main screen
only(defaul gc config), but gc.getBounds() is related to appropriate
screen(and take scale factor of those screen into account). In case of
xinerama we should have two GC which should have each own scales.
--
Best regards, Sergey.
More information about the awt-dev
mailing list