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

Whene calling Scene.setRoot several times the scene content is no longer refreshed

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P2
    • Resolution: Duplicate
    • Affects Version/s: fx2.1
    • Fix Version/s: None
    • Component/s: javafx
    • Environment:

      Using FX 2.1 promoted b04 on Windows

      Description

      Attached Login.zip contains a NetBeans 7.1 project (use RC2 or above).
      At start it displays a first Login screen: use credentials demo / demo and hit OK button ==> you get to a second screen ... but its content is not refreshed.
      For doing so we do (see App.java):

      Scene scene = stage.getScene();
      stage.getScene().setRoot(page); // this call is no longer working, the content of the scene is not refreshed.

      The workaround is to create a new scene each time.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              psafrata Pavel Ĺ afrata
              Reporter:
              yjoan Yves Joan (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported: