Is there a way to safely refresh the Component I returned from TreeViewItem::createItemComponent()?
According to the docs I am not allowed to keep a reference to it, but I do need to call its refresh() function. A simple repaint will not do, as refresh() updates the text of a label and somewhat more. I would also like to add drag-and-drop support later on, so I do need to use createItemComponent() instead of paintItem().
As usual, any help is much appreciated!