Posted Thursday, March 6, 2008 @ 10:23:33
Hi, yesterday I was like blocked, but today I made a few changes and it work perfect, here is the code if anyone want to commit changes when the selected row change.
class MyCellListener implements DBTableCellListener {
private quick.dbtable.DBTable tbl;
private MstrDlrListRWU update;
private int theRow;
public MyCellListener(quick.dbtable.DBTable tbla, MstrDlrListRWU upd) {
super();
this.tbl = tbla;
this.update = upd;
this.theRow=0;
}
public Object cellValueChanged(int row, int col, Object oldValue, Object newValue) {
if(this.theRow!=row){
System.out.println("update"+this.theRow);
this.theRow=row;
System.out.println("new row"+this.theRow);
}
return newValue;
}
}