table.setRowSelectionInterval(0, 0);
I had tried the above code, but when I use this code I cannot retrieve the values using the below code:
int col = table.getSelectedColumn();
int row = table.getSelectedRow();
finalOID=(String)table.getModel().getValueAt(row, col);
System.out.println("first oid:"+finalOID);
How can I solve this?