這就是我需要完成回答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