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

Display bug in Pane.getChildren().setAll()

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 8
    • 7u21
    • javafx

      Suppose I have:
      - two screens (Panes): screenA, screenB
      - a parent pane: parentPane

      If screenA is never displayed yet, if I do something like:
      parentPane.getChildren().setAll(screenA); //line1
      parentPane.getChildren().setAll(screenB); //line2

      Obviously, on the UI, I see the outcome of line2, i.e. I see screenB displayed.

      But the problem is: if later in the code, I do:
      parentPane.getChildren().setAll(screenA);

      screenA is no loger being displayed on the UI.

      This problem doesn't occur if I initially display screenA, then repeat the above steps.

            dgrieve David Grieve
            sbozianjfx Shant Bozian (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: