I have a class TreeNode which has some attribitues and a ArrayList of children.
For this class I have my own TreeModel which extends AbstractTreeTableModel. The created tree is displayed correctly.
Now I want to add a search field which searches in one attribute and show all parents and all children when it matches with one node. So I have to traverse the tree up and down.
I tried to use a SerachFactory but it only searches visible nodes.
An Example would help me a lot or best practise. Do I need a second Model (which extends AbstractTreeTableModel) where a filter can be applied? How can I do that? Or is the way to go over a Renderer?