How to make window fullscreen/maximized in Scene Builder?

前端 未结 5 1221
别跟我提以往
别跟我提以往 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:49

    Two properties I found in stage which are useful. First is setFullScreen(boolean) which will set your view to full screeb, but it will also hide all the taskbar and header of view.

    Second is setMaximized(boolean) which will set you view to perfect like any other application view size.

    I an using setMaximized(true) for my application.

提交回复
热议问题