Hi Jerome, Your last comment is related to this open issue: https://bugs.openjdk.java.net/browse/JDK-8087618
Jose On Thu, Mar 31, 2016 at 12:31 PM, Jérome Cambon <jerome.p.cam...@gmail.com> wrote: > Hi, > > I can reproduce the issue as well, on both my Mac Retina display and my > external display. > Additional comments: > - If one resize the window and click the maximize button several times: no > issue > - Once maximized, if one resize the window by only few pixels, and click > the maximize button: nothing happen. > - I guess the ‘maximized’ property should be set to false as soon as the > window is resized: this is not the case. > > Jerome > > > > On Mar 31, 2016, at 11:16 AM, José Pereda <jose.per...@gluonhq.com> > wrote: > > > > Hi all, > > > > Running this little test on a MacBook Pro Retina, OS X 10.11.4, with JDK > > 8u77: > > > > @Override > > public void start(Stage stage) { > > Button button = new Button("Click to maximize"); > > button.setOnAction(e -> stage.setMaximized(true)); > > Rectangle2D bounds = Screen.getPrimary().getVisualBounds(); > > stage.setScene(new Scene(new StackPane(button), bounds.getWidth(), > > bounds.getHeight())); > > stage.show(); > > } > > > > which shouldn't do anything at all, since the stage is already maximized, > > turns into an iconified application, with root dimensions 0x0, stage > > dimensions 0x22 (height of menubar), stage.isIconified() returns false, > and > > it can't be restored again to any visible size by any means other than > > closing the application from the dock. > > > > A posible situation where this could happen: persisting and restoring the > > properties (x, y, width, height and maximized) of a maximized stage. > > > > > > I haven't found any report of this. Should I file a bug? > > > > Thanks, > > Jose > > > > -- > > --