JDK-8093039 : IconifiedProperty is not updated on maximized windows
  • Type: Bug
  • Component: javafx
  • Sub-Component: window-toolkit
  • Affected Version: 8u5
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • Submitted: 2014-05-01
  • Updated: 2015-06-12
  • Resolved: 2014-05-05
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 8
8u20Resolved
Related Reports
Duplicate :  
Description
When a stage is maximized -> iconified -> restored, the iconifiedProperty of the stage won't get properly updated. The test below demonstrates the behavior - when the stage is iconified newValue is true, when the stage is restored the listener does not receive any event.The issue does not occur if the stage is not maximized. The issue also occurs with Java 8u20 b11. The issue was already reported as RT-32508 but still exists, so please fix - currently it's pretty difficult to create a properly working non-native window decoration.

public class IconifiedPropertyTest extends Application
{

  public static void main(String[] args)
  {
    Application.launch(IconifiedPropertyTest.class, args);
  }

  @Override
  public void start(Stage stage)
  {
    stage.iconifiedProperty().addListener(new ChangeListener<Boolean>()
    {
      @Override
      public void changed(ObservableValue<? extends Boolean> observable, Boolean oldValue, Boolean newValue)
      {
        System.err.println("isIconified: " + newValue);
      }
    });
    
    BorderPane root = new BorderPane();
    Scene scene = new Scene(root, 800, 600);
    stage.setScene(scene);
    //iconifiedProperty works fine if window is not maximized
    stage.setMaximized(true);
    stage.show();
  }
} 
Comments
Yep, a dup. Closing.
05-05-2014

Dup of RT-36916 ?
02-05-2014