int lo_row = getRowForPoint(begin); int hi_row  = getRowForPoint(curr);
int lo_row = table.rowAtPoint(begin); int hi_row  = table.rowAtPoint(curr);
    private void updateSelection()    {      if (table.getRowSelectionAllowed())        {          int lo_row = getRowForPoint(begin);          int hi_row  = getRowForPoint(curr);          ListSelectionModel rowModel = table.getSelectionModel();          if (lo_row != -1 && hi_row != -1)            rowModel.setSelectionInterval(lo_row, hi_row);        }      if (table.getColumnSelectionAllowed())        {          int lo_col = getColForPoint(begin);          int hi_col = getColForPoint(curr);          ListSelectionModel colModel = table.getColumnModel().getSelectionModel();          if (lo_col != -1 && hi_col != -1)            colModel.setSelectionInterval(lo_col, hi_col);        }    }