posted 16 years ago
Check out JTable.setSelectionModel in combination with the ListSelectionModel interface. With the addSelectionInterval and insertSelectionInterval methods you determine what rows / columns are actually selected.
Perhaps the easiest way is to wrap the default selection model: