JavaFX: Set Scene min size excluding decorations

前端 未结 2 1524
小鲜肉
小鲜肉 2021-01-19 12:47

I know that with JavaFX you can set the Stage min size using stage.setMinWidth() and stage.setMinHeight(), however, this will include the window bo

2条回答
  •  南笙
    南笙 (楼主)
    2021-01-19 13:24

    Inside void start(Stage primaryStage), put the following:

    primaryStage.initStyle(StageStyle.UNDECORATED);
    

提交回复
热议问题