JTree in Project-Window

in an Action I have got access to the JTree on the Projektwindow. I like to expand the Tree, but the method expandPath(...) shows no effect.

When I add a TreeExpansionListener, the treeExpanded-Method is called. The Tree (or better the actual Node) is still not expanded (at least not visually).

What I found out is that all collapsed nodes have only one child labeled 'Loading...'. I guess wenn I expand the node, its childs are dynamically loaded. Still, calling tree.expandPath(treePath) does not expand anything (allthough TreeExpansionListener is called)

Any ideas?


Please sign in to leave a comment.