--- old/src/java.desktop/share/classes/java/awt/Component.java 2017-10-25 17:18:11.618622571 -0700 +++ new/src/java.desktop/share/classes/java/awt/Component.java 2017-10-25 17:18:11.466643479 -0700 @@ -2034,14 +2034,14 @@ * used by GlobalCursormanager to update cursor */ final Point getLocationOnScreen_NoTreeLock() { - + ComponentPeer peer = this.peer; if (peer != null && isShowing()) { if (peer instanceof LightweightPeer) { // lightweight component location needs to be translated // relative to a native component. Container host = getNativeContainer(); Point pt = host.peer.getLocationOnScreen(); - for(Component c = this; c != host; c = c.getParent()) { + for(Component c = this; c != host; c = c.getContainer()) { pt.x += c.x; pt.y += c.y; }