modules/graphics/src/main/java/javafx/stage/PopupWindow.java

Print this page

        

*** 424,441 **** if (owner != null) { owner.showingProperty().addListener(weakOwnerNodeListener); } final Scene sceneValue = getScene(); - if (sceneValue != null) { SceneHelper.parentEffectiveOrientationInvalidated(sceneValue); - } // RT-28447 final Scene ownerScene = getRootWindow(owner).getScene(); if (ownerScene != null) { sceneValue.getStylesheets().setAll(ownerScene.getStylesheets()); } // It is required that the root window exist and be visible to show the popup. if (getRootWindow(owner).isShowing()) { // We do show() first so that the width and height of the --- 424,442 ---- if (owner != null) { owner.showingProperty().addListener(weakOwnerNodeListener); } final Scene sceneValue = getScene(); SceneHelper.parentEffectiveOrientationInvalidated(sceneValue); // RT-28447 final Scene ownerScene = getRootWindow(owner).getScene(); if (ownerScene != null) { sceneValue.getStylesheets().setAll(ownerScene.getStylesheets()); + if (sceneValue.getCursor() == null) { + sceneValue.setCursor(ownerScene.getCursor()); + } } // It is required that the root window exist and be visible to show the popup. if (getRootWindow(owner).isShowing()) { // We do show() first so that the width and height of the