JavaFX node的setManaged方法

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/haoranhaoshi/article/details/85246507

node的setManaged方法用来定义node是否被Parent管理,默认为true。Button如果setManaged(false),无法显示,即使设置了宽高;在Pane中加入一个SubScene和Pane,如果SubScenesetManaged(false),Pane将叠加在SubScene上,即使使用BorderPane设置位置为下,底部也将与SubScene持平。

猜你喜欢

转载自blog.csdn.net/haoranhaoshi/article/details/85246507
今日推荐