I’m developing a JavaFX FXML application. I need to resize the window from the controller class at runtime.
I found out that its possible to do this from the application class by setting maxHeight and maxWidth properties of the stage. But how to do it from the controller class while the application is running?
Define a button in the controller class and set on action of it like
where stage is your primary (main) stage.