side effect of using setRowSelectionAllowed(false): loss of highlight in selected row
Posted on 2001-07-16
I have defined: JTable dataTable;
and I am using: TableModel tableModel;
to display table rows in the user interface. When user selects a row, I use:
dataTable.setRowSelectionAllowed(false); to disable selection of any rows in the table and it works.
The problem I have is that as soon as this is executed, the selected row is not highlighted anymore.
disable() method works however, it is deprecated and I don't wnat to use that instead.