How to set the JTable's selection mode?
There are three selection modes available in the
JTable component. The selection mode can be a single selection, a single interval selection or a multiple interval selection. To set the selection mode we call the
JTable.setSelectionMode() method and pass one of the following value as the parameter: