JavaFX screen resolution scaling

 ̄綄美尐妖づ 提交于 2019-12-03 11:07:30

You need to set anchor pane constraints on child. in your case gridpane

AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0"

This will go after your

 GridPane prefHeight="300.0" prefWidth="400.0" **HERE** 

This will maximize Child component within container , hence 0 0 0 0 pixels from each side .

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!