How to add filter to a tree

Hi
I have created an tree. Now i want to filter the tree based on the tree node entered in searchbox.

Can anyone please let me know how can we filter the tree

Filtering is related to the container. If you are using HierarchicalContainer (which does have filtering support), see the javadoc for
Container.Filterable
and
HierarchicalContainer
.

Hi,
I have a tree with items that get store after button click into the panel and i have a combobox with some four values if i select specific second value from ComboBox and press the Button then only it has to show the Tree item in the panel otherwise it should not show the item at all how i can achieve this can u please help me regarding this

I’m confused by this implementation. To me the container is a model, and the tree is a view. Filters audit information. The tree is already a kind of filter in that, in general, it only reveals down to the point someone has expanded children. I am implementing something similar to the eclipse “perspective” notion. In my approach, the same container is used, with different trees and, depending on the perspective, I need to audit the nodes which will appear. I do not understand the use case where filtering is not about appearance and doesn’t belong in the view rather than the model.

Having said that, I’ll solve this by swapping the filter on the container as the perspective is changed. Thing is, I wind up coupling the IU to the model in more places than seem necessary as not only must the tree know about the model, now the perspective needs to know as well. Meanwhile, had it been the tree which was filtered, I could have added the filter to the tree, and the perspective manager (which watches perspective changes) would happily have no idea there was a filter anywhere, or a container for the nodes.