public void findClassNodesMatching(String lowerCaseSearchText, List<? extends DefaultMutableTreeNode> foundNodes) {
findClassNodesMatching(lowerCaseSearchText, (DefaultMutableTreeNode) getRoot(), foundNodes);
}
private void findClassNodesMatching(String lowerCaseSearchText, DefaultMutableTreeNode node, List<? extends DefaultMutableTreeNode> foundNodes) {
String nodeLabel = node.toString().toLowerCase();
if (nodeLabel.indexOf(lowerCaseSearchText) >= 0) {
foundNodes.add(node);
}
}
Ccna final exam - java, php, javascript, ios, cshap all in one. This is a collaboratively edited question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.
Showing posts with label jtree. Show all posts
Showing posts with label jtree. Show all posts
Monday, January 30, 2012
Error while working with List<? extends DefaultMutableTreeNodel>
Tags
extends,
java,
jtree,
list,
Tips For Programmer
Subscribe to:
Posts (Atom)