Menu

#30 Notifying while reading a CSV table

rendering
open
nobody
rendering (2)
5
2008-11-20
2008-11-20
No

Hello.

Suppose you create a DefaultTable, then use a ColumnFilter to get a FilteredTable, and then display in a JTable. This being done, you decide to use a CSVTableReader to populate your DefaultTable. Each time a label is read, it notifies the GUI, which gets confused by being notified so often.

Proposal for a solution: insert a disableNotify() and an enableNotify() to protect the for loop in readLabels() of CSVTableReader.

This might eventually affect other TableReaders.

Discussion


Log in to post a comment.

MongoDB Logo MongoDB