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()用鼠标位置得到。
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()用鼠标位置得到。
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.