这就是我需要完成回答my last question。JavaFX 2:表格:更新数据后更新显示
如果你看一下我的最后一个问题,你会看到我的课,包含四个字段,对应于我的表的四列
public static class ContactOptions {
private final StringProperty one;
private final StringProperty two;
private final StringProperty three;
private final StringProperty four;
ContactOptions(String col1, String col2, String col3, String col4) {
this.one = new StringProperty(col1);
this.two = new StringProperty(col2);
this.three = new StringProperty(col3);
this.four = new StringProperty(col4);
}
public String getOne() {
return one.get();
}
public String getTwo() {
return two.get();
}
public String getThree() {
return three.get();
}
public String getFour() {
return four.get();
}
}
如何获得GUI来更新我跑ContactOptions.one.set
后?
当我向下滚动并备份时,它会更新。我如何在不滚动的情况下更新它。
我也问了这个在https://forums.oracle.com/forums/thread.jspa?threadID=2275725
是的,我已经处理了这个项目。但不使用这些方法。看起来就是我所需要的。 – Dorothy