My parent stage "stage1" opens the child scene "stage2", and I installed the mod for the child stage, as shown below.
stage2.initModality(Modality.APPLICATION_MODAL);
Now, when I open stage2 from stage 1, stage1 appears after scene2, which is expected, but when I press the Ctrl + Tab key, the control switches to the 3rd patch application, for example, Outlook, and then press Ctrl + Tab ", it goes back to our main applicate, and it shows stage2, but stage1 seems hidden. My expectation is that stage1 should be hidden behind the stage2.
Any help would be very helpful.
java javafx modal-dialog
Deepinjava
source share