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

Maximizing an Window with Screen-Size hides it

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: 8u77, 9
    • Fix Version/s: 9
    • Component/s: javafx

      Backports

        Description

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

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  azvegint Alexander Zvegintsev (Inactive)
                  Reporter:
                  tschindl Tom Schindl
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  5 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: