JDK-8124751 : Fix usage of Window.getX(), Window.getY() in controls
  • Type: Bug
  • Component: javafx
  • Sub-Component: controls
  • Affected Version: 8
  • Priority: P3
  • Status: Closed
  • Resolution: Not an Issue
  • Submitted: 2013-04-17
  • Updated: 2015-06-17
  • Resolved: 2013-05-16
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 8
8Resolved
Related Reports
Relates :  
Relates :  
Description
With fix for RT-28775, the Popup x, y coordinates no longer specify the upper left corner of the window, but some inner point of it. This means that any conversion from window coordinates to screen coordinates and back which uses only the Window x, y position won't work for these shifted popup windows. All such conversions in Scenegraph code were fixed in RT-29728 including the Node.localToScreen and Node.screenToLocal conversion methods. Similarly usage of Window.getX() and Window.getY() usage should be investigated and fixed in controls code. Whenever possible the Node.localToScreen and Node.screenToLocal should be used.
Comments
The PopupWindow translate compensation is included in the Scene.getX(), Scene.getY() after RT-30319. So it is not necessary to modify the existing screen to local and local to screen calculations.
16-05-2013