How to keep the currently selected rows highlighted even after disabling the row selection in jTable in java
问题 I have a JTable in java which contains 5 rows(lets say) UI. I select 2 rows and those 2 rows are highlighted and then I click on a button. Now in the code, on that button I am disabling the row selection so that I will not be able to select any more rows once I have clicked that button. But the problem is the selection of those 2 rows is getting cleared means that in the code I can access those 2 selected rows but in the UI those rows are not highlighted after disabling. Is there any way that