TreeTable GUI update
I desperately hope that somebody can help me!
I'm using the swingx-component JXTreeTable in a project and implemented Drag&Drop there. The model of this view is a subclass of AbstractTreeTableModel and represents the file system plus metadata.
Drag&Drop is used for moving files and folders from one place in the tree to another, and that works fine as the model in the background gets restructured correctly according to the drag&drop operation.
Now what does NOT work is the corresponding refresh of the view. It happens SOMETIMES (I haven't found a pattern yet) that although the model has changed its structure correctly the view doesn't reflect that.
In fact, when it happens, the dragged&dropped element DOES appear below the destination parent, but does NOT get removed from the source parent (again: only in the view, the model is fine!).
The part of code that refreshes the view looks like this: