0
My window is without the edges of the system.
primaryStage.initStyle(StageStyle.UNDECORATED);
I created a button to minimize the window but I find Exception by 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 it?