How to programmatically select JTable's columns?
This program shows you how to select some columns in the
JTable programmatically. Below we demonstrates how to select columns using the
setColumnSelectionInterval() method, remove or clear column selection using
removeColumnSelectionInterval() method and use the
addColumnSelectionInterval() to add more columns to the previously selected columns.