I use my StringTableListBox class (inherited from TableListBox) to put in some MP3’s and their ID3 information. After the ID3 information has been scanned (this can take up to a few seconds), the table is the sorted according to the TableHeader’s last select column ID and sort direction.
Here’s where the problem arises: after the sorting, the table should reflect the new sort order:
- If I call updateContent(), nothing happens. I guess this is because the number of rows did not change?
- If I call repaint(), the changes are reflected - but another component on the screen, a TreeView, just disappears (it is “overpainted”)!
Why does the second option not work and why is the TreeView “overpainted”? What is the right way to do it?