JTable problem with getting ROW selected

HI....
I am making Mail manager... (Server client.....)
i load mails to JTABLe... I WANt the rowselected to map it to mainNumBER IN db... but getRowSelected() works fine for viewing once .. wen i come back to INBOX and click on other rows it gives rowSelected -1..

Does the JTable give you a visual indication that row selection is taking place, i.e., do the rows change color? If not, you may have setEnabled(false) your JTable, so it is no longer responding, or something else that is keeping the JTable from receiving mouse clicks.