Programatically Select JTree Node

    int whateverRowYouWantToSelect = 0;
    javax.swing.tree.TreePath path = this.tree.getPathForRow(whateverRowYouWantToSelect);
    this.tree.setSelectionPath(path);
2/2/2008 | Comments (0) in Java
Email

Related posts