posted 22 years ago
Hi,
I have this JTree in a scroll pane. Each node in the Tree has several attributes, say, for example, Name, Type, Colour, Height. Under the tree, is a combo box. From this, you can select, Type, Colour, Height etc. You select 'Colour' and all the data from the tree is grouped into colours, a new tree is built and .... hey presto, it doesn't appear. The old Tree, grouped by whatever it was grouped by, just sits there.
Here's how I try to show the new tree :
I'm happy with builder.buildTree(), and have tested that seperately, I just can't get the panel to pick up the changes. I tried :
but nothing happened.
What should I try next ?
Thanks,
Kate