RFR: 8222210: JFXPanel popups open at wrong coordinates when using multiple hidpi monitors [v2]

Andy Goryachev angorya at openjdk.org
Fri Oct 28 16:17:04 UTC 2022


On Thu, 20 Oct 2022 16:07:20 GMT, Andy Goryachev <angorya at openjdk.org> wrote:

>> Johan Vos has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   address reviewer comments
>>   Fix detection on screen, based on awtScale factors
>
> modules/javafx.swing/src/main/java/javafx/embed/swing/JFXPanel.java line 646:
> 
>> 644:                 Dimension2D fxcoord = getSwingToFxPixel(getGraphicsConfiguration(), p.x, p.y);
>> 645:                 screenX = (int)fxcoord.getWidth();
>> 646:                 screenY = (int)fxcoord.getHeight();
> 
> same question about negative coordinates.

and Point2D :-)

-------------

PR: https://git.openjdk.org/jfx/pull/924


More information about the openjfx-dev mailing list