u should use mouseListener like this
table.addMouseListener(new MouseAdapter()
{
public void mouseClicked(MouseEvent e)
{
int X = e.getX();
int Y = e.getY();
int currentCol = getCurrentColumn(X,Y);
int currentRow = getCurrentRow(X,Y);
String str = getTableValueAt(cRow,cCol);
}
}
don't use getselectedrow, first dwtwct column and row then fetch a value when user click any row, i hope now ur problem get sorted off.