Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8087449

[Modality] Z-order issue

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • fx2.0
    • javafx

      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.

            Unassigned Unassigned
            akirov Alexander Kirov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Imported: