My window is missing the system borders.
primaryStage.initStyle(StageStyle.UNDECORATED);
I created a button to minimize the window but exception when assigning to my stage
:
@FXML
void btnMinimizarOnAction(ActionEvent event) throws IOException
{
Stage stage = (Stage) btnMinimizar.getScene().getWindow();
stage.setIconified(true);
}
Is there any other way to do this?