我在 ScrollPane 中有一个标签。我正在循环中更新标签(在另一个线程中)。如果用户没有将 ScrollPane 保持在某个位置,如何更新 ScrollPane 使其向下滚动(不是横向滚动,这将手动完成)?有一个设置器吗?
要将 ScrollPane 设置为底部,请自动设置vvalue
ScrollPane 元素的,如下所示:
@FXML private ScrollPane scroll; //this must match the fx:id of the ScrollPane element
scroll.setVvalue(1.0); //1.0 means 100% at the bottom
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)