TableList & repainting


#1

Hi there!

 

I have a component that inherits from TableListBoxModel to list show filenames that I can drag-and-drop on top of the component. However, I can't get the table to repaint when a file has been dropped on the component, I have to manually resize one of the columns for the table to be repainted. I must be missing something obvious here. I've tried adding repaint() call to try force the component to re-draw but nothing happens.

Any tips on what I might be missing? I've looked at the WidgetsDemos where I have taken some code from.

Thanks!


#2

TableListBox inherits from ListBox which has a method repaintRow..?


#3

Completely overlooked that inheritance! Thanks, all working! :)