Launch attached application
Do so, that application window would be upper then some window (for example opened Net-beans)
Click "Init"
In appeared window click "NONE"
In appeared window click "WIN"
You have created the next hierarchy of windows: (Initial stage (type:none) -> the first stage(title: stage0; type:none) -> the second stage(title:stage1; type:none) -> the third stage (title: stage2; type:window_modal)).
(A -> B means that A has i child stage B, or B has a parent A)
Click on any of the "Click, when you are ready to close all stages"
This code will work:
for (Stage stage : ModalityWindow.allStages) {
stage.close();
}
where allStages is the stack of created stages.
You may see, that after clicking on all stages close button, the "primaryStage" (that is initial stage) will disappear under your program (I supposed NetBeans).
That was reproduced from tests on modality. That leads tests to fail.
Do so, that application window would be upper then some window (for example opened Net-beans)
Click "Init"
In appeared window click "NONE"
In appeared window click "WIN"
You have created the next hierarchy of windows: (Initial stage (type:none) -> the first stage(title: stage0; type:none) -> the second stage(title:stage1; type:none) -> the third stage (title: stage2; type:window_modal)).
(A -> B means that A has i child stage B, or B has a parent A)
Click on any of the "Click, when you are ready to close all stages"
This code will work:
for (Stage stage : ModalityWindow.allStages) {
stage.close();
}
where allStages is the stack of created stages.
You may see, that after clicking on all stages close button, the "primaryStage" (that is initial stage) will disappear under your program (I supposed NetBeans).
That was reproduced from tests on modality. That leads tests to fail.
- relates to
-
JDK-8087626 [Modality] Z-order broken, when windows are closed.
- Open
-
JDK-8088843 [Modality] Z-order in plugin is wrong in situations of two hierarchies.
- Closed