@FXML private ScrollPane scroll; //this must match the fx:id of the ScrollPane element or be the scrollpane objectscroll.setVvalue(1.0);//1.0 means 100% at the bottom
我用这部分代码解决了“必须看标签”的问题
tab.setonSelectionChanged(new EventHandler<Event>() { @Override public void handle(Event arg0) { ScrollPane.setVvalue(1.0); } });
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)