Im having problems with this JTable. I edit a cell like this
Then i commit changes pressing enter. Here im hoping that table gui refresh with new values.
But they aren't show, they are only show when i change selection like this
fireTableCellUpdated( inRow, inCol );
is the method call when in the tableModel
when i edit a cell.
Im not sure if i have to add listener to the tableModel when fireTableCellUpdated to the jtable to repaint and revalidate.
Some Code :
This is called in the tableModel.
@Override
public void setValueAt( Object inValue, int inRow, int inCol ) {
ProductRow productRow = (ProductRow)( getRowsData().get(inRow) );
//more code
productRow.setCantidad( inValue.toString() ); // when this is called all properties are updated from ProductRow
fireTableCellUpdated( inRow, inCol );
}