1、那个接口叫TableModelListener。
public interface TableModelListener extends java.util.EventListener
{
/**
 * This fine grain notification tells listeners the exact range
 * of cells, rows, or columns that changed.
 */
public void tableChanged(TableModelEvent e);
}
2、TableModel的setValueAt()里有row&col。如果你关心的是鼠标事件的话可以通过rowAtPoint()和columnAtPoint()用鼠标位置得到。

解决方案 »

  1.   

    我想要得到当前哪一个[row,column]得到了输入焦点
      

  2.   

    int getEditingColumn() 
              Returns the index of the column that contains the cell currently being edited. 
     int getEditingRow() 
              Returns the index of the row that contains the cell currently being edited. 
      

  3.   

    再问一下:当一个网格被选中的时候,它触发什么listener?当它被修改的时候,它又触发什么listener?