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

Maximizing an Window with Screen-Size hides it

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 9
    • 8u77, 9
    • javafx

        This is a critical bug because the user is unable to bring back the window!

        @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();
            }

              azvegint Alexander Zvegintsev
              tschindl Tom Schindl
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: