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