Hi I have this typical case, where i populate a JTable based on values fetched from a Database, then i select one of the rows and perform some actions, i have a timertask running which refreshes this table every 25secs. When ever i refresh i am losing my selection and i am not able to reselect again. So How can i retain my selection of the JTable.
when you select row, store that row in different variable.After refreshing table ,you will get same value from that variable.Pl note that define that variable globally. Bye..
Hi Yousuf Thanks for the suggestion but i am storing the variable globally, but while the grid is loaded for the second time there is no method in the JTable class to set the selected row to the same row. Hence the Selection is lost. Is there any round about way to do this?