Maintaining selected rows in JTable when clicking a JButton
843807Mar 9 2010 — edited May 28 2010I have an application with a JTable with multiple rows and columns. I have a JButton that performs an action on each row that is selected in the JTable. When I click the button, the actions get performed on the selected rows correctly. However, all the rows become unselected after I click (probably because the focus goes to the JButton). Is there a way to keep all those rows selected?