public class MyTableModel extends AbstractTableModel{
  public void setValueAt(Object value, int nRow, int nCol) {
    if (nRow < 0 || nRow >= getRowCount() || value==null)
      return;
    MyObject row = (MyObject)m_vector.elementAt(nRow);
    String svalue = value.toString();
    switch (nCol) {
      case 0:
        row.setColOneWord(svalue);
        break;
      case 1:
        row.setColTwoWord(svalue);
    }
    fireTableCellUpdated(nRow, nCol);
  }
}