JDK-8099403 : No way to determine Node screen coordinates.
  • Type: Enhancement
  • Component: javafx
  • Sub-Component: graphics
  • Affected Version: fx1.2,fx1.3
  • Priority: P2
  • Status: Closed
  • Resolution: Duplicate
  • Submitted: 2009-07-16
  • Updated: 2015-06-16
  • Resolved: 2009-08-12
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.
Other
fx1.3Resolved
Related Reports
Relates :  
Relates :  
Description
There is no way to determine screen coordinates of a node.

I could get coordinates of a node in Scene by localToScene method, I could get screen coordinates of a Stage.

But Scene.x and Scene.y are always 0.

So, if Stage.style is StageStyle.DECORATED there is a window border width (which affects x coordinate) and title height (which affects y).

This is a blocker for UI test automation.


Comments
covered by RT-3215
12-08-2009

This is not a "BLOCKER" in the usual sense of how we assign priority. Marking it as Critical and changing the issue type to "FEATURE". Whatever solution is done will need to work on mobile as well as desktop, and work with Applets as well as applications.
16-07-2009

This is related to RT-3215 which is a request to make the insets (e.g., the size of the window decoration) available to the app. There may be other ways to solve this problem, but we need to be careful not to break compatibility.
16-07-2009

Dmitri, we talked about it. This is high priority for SQE. Workarounds are ugly, as you know.
16-07-2009