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

iconifiedProperty not correctly updated when the application is maximized

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: P3 P3
    • 7-pool
    • 7u25
    • javafx
    • 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).

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

              Created:
              Updated:
              Resolved:
              Imported: