Here is my code. I want to select multiple rows in JTable
, I am using the following line:
table.getColumnModel().getSelectionModel().setSelectionMode(
javax.swing.ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);
With the above line I am able to select multiple rows using keyboard, but requirement is to select only using mouse.
Is there any thing other than this, that Java provides for multiple selection only using mouse without using keyboard?