开发者

Search inside a JXTree

I am trying to开发者_如何转开发 perform a search with a JXTree and the searchable interface from swingx but I am not able to find any example and I dont know how it works since I have not used it previously with any other swingx components.

What I do is:

tree.getSearchable().search("text to search")

but nothing happens within the tree and I am expecting it to filter its content to show the nodes matching the search.

Any examples? Any hints? Thanks


According to the API the method does not filter the tree it just:

"Returns: index of matched String or -1 if a match cannot be found."

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜