How to make window fullscreen/maximized in Scene Builder?

Navi89CZ picture Navi89CZ · Jul 15, 2015 · Viewed 68.3k times · Source

I am making a view in SceneBuilder for my JavaFX application. I want my view to be maximized. How can I achieve this in SceneBuilder or the .fxml file?

Answer

ItachiUchiha picture ItachiUchiha · Jul 15, 2015

You cannot do that using Scene Builder, since maximize or fullScreen are properties of the Stage and not the layouts set on the scene.

You can load and set the .fxml on the scene and later set the scene on the stage.

The following methods can be used on the stage :