Java Searchable JTree
Posted
by Studer
on Stack Overflow
See other posts from Stack Overflow
or by Studer
Published on 2010-05-30T21:42:52Z
Indexed on
2010/05/30
23:42 UTC
Read the original article
Hit count: 398
I'm trying to use the Searchable JTree from girishchavan on a FileSystemModel from Sun.
It didn't work the first time because Sun's Node implementation is a File so I transform it into DefaultMutableTreeNode to be compatible with Searchable JTree. I also edited Searchable JTree to match the path of a file.
But it still doesn't work. As far as I can see, it seems that the Searchable JTree only detects the root of the original JTree and cannot go further. Maybe the Nodes are not bind to each others even if they display correctly in a JTree.
How can I make it compatible ?
© Stack Overflow or respective owner