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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P2 P2
    • None
    • fx2.1
    • javafx
    • Using FX 2.1 promoted b04 on Windows

      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.

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

              Created:
              Updated:
              Resolved:
              Imported: