How to make window fullscreen/maximized in Scene Builder?

前端 未结 5 1233
别跟我提以往
别跟我提以往 2021-02-03 20:03

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?

5条回答
  •  醉酒成梦
    2021-02-03 20:41

    This is the code that works for me

    primaryStage.setMaximized(true);
    

    it miximizes my window screen on the launch of the app.

提交回复
热议问题