ADDITIONAL SYSTEM INFORMATION :
MacOS 10.15.5
A DESCRIPTION OF THE PROBLEM :
- My application opens a dialog / a popup (a new Stage) with ownership set (on the primaryStage for instance)
- I move the new dialog to another screen: it disappears (the main stage is still visible)
The "popup" stage title is still visible in the toolbar (with the main dialog), but even clicking on it doesn't bring it back. If I move the primary stage to this other screen, then the "popup" reappears again. It's possible to make them both visible (on different screens) after a few manipulations but it's kinda odd.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Have at least 2 screens. Start the example application (or just create an app that opens a new Stage with ownership), click on the button to open the popup, move the popup to another screen.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
The new stage still visible on the other screen
ACTUAL -
The new stage is hidden on the other screen just after moving
---------- BEGIN SOURCE ----------
class TestApp : Application() {
override fun start(primaryStage: Stage) {
primaryStage.scene = Scene(HBox().apply {
val btn = Button("click me")
children.add(btn)
btn.onAction = EventHandler {
val popup = Stage(StageStyle.DECORATED)
popup.initOwner(primaryStage)
popup.scene = Scene(Label("popup"), 200.0, 200.0)
popup.show()
}
}, 400.0, 400.0)
primaryStage.show()
}
}
---------- END SOURCE ----------
CUSTOMER SUBMITTED WORKAROUND :
Move back the main window to the other screen
FREQUENCY : always
MacOS 10.15.5
A DESCRIPTION OF THE PROBLEM :
- My application opens a dialog / a popup (a new Stage) with ownership set (on the primaryStage for instance)
- I move the new dialog to another screen: it disappears (the main stage is still visible)
The "popup" stage title is still visible in the toolbar (with the main dialog), but even clicking on it doesn't bring it back. If I move the primary stage to this other screen, then the "popup" reappears again. It's possible to make them both visible (on different screens) after a few manipulations but it's kinda odd.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Have at least 2 screens. Start the example application (or just create an app that opens a new Stage with ownership), click on the button to open the popup, move the popup to another screen.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
The new stage still visible on the other screen
ACTUAL -
The new stage is hidden on the other screen just after moving
---------- BEGIN SOURCE ----------
class TestApp : Application() {
override fun start(primaryStage: Stage) {
primaryStage.scene = Scene(HBox().apply {
val btn = Button("click me")
children.add(btn)
btn.onAction = EventHandler {
val popup = Stage(StageStyle.DECORATED)
popup.initOwner(primaryStage)
popup.scene = Scene(Label("popup"), 200.0, 200.0)
popup.show()
}
}, 400.0, 400.0)
primaryStage.show()
}
}
---------- END SOURCE ----------
CUSTOMER SUBMITTED WORKAROUND :
Move back the main window to the other screen
FREQUENCY : always
- duplicates
-
JDK-8324597 PopupWindow pushed outside secondary screen when owner window is set full screen
- Closed
- relates to
-
JDK-8080729 [macosx] java 7 and 8 JDialogs on multiscreen jump to parent frame on focus
- Resolved
-
JDK-8324597 PopupWindow pushed outside secondary screen when owner window is set full screen
- Closed