iconifiedProperty not correctly updated when the application is maximized

XMLWordPrintable

    • Type: Bug
    • Resolution: Won't Fix
    • Priority: P3
    • 7-pool
    • Affects Version/s: 7u25
    • Component/s: javafx
    • Environment:

      win7 64bit using java7b25 and java8b103

      Based on: https://forums.oracle.com/thread/2572732

      iconifiedProperty does not work as expected when the application is maximized.

      Can be reproduced using the following code and flow:

      primaryStage.iconifiedProperty().addListener(new ChangeListener<Boolean>() {
                  @Override
                  public void changed(ObservableValue<? extends Boolean> observable, Boolean oldValue, Boolean newValue) {
                      if (newValue) {
                          System.out.println("Locked");
                      }
                      else {
                          System.out.println("unLocked");
                      }
                  }
              });

      Flow:
      * Start application
      * Maximize the application
      * Minimize the application to lock it (iconifiedProperty is set to true).
      * Click on the application to show it (iconifiedProperty is not triggered).
      * Click maximize again to restore the application to its previous size and unlock (iconifiedProperty is set to false).

            Assignee:
            Alexander Potochkin (Inactive)
            Reporter:
            J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: