JTree tree = getContainer().getTree();
//test
for (int i = 1; i <= tree.getRowCount(); i++) {
DefaultMutableTreeNode node = (DefaultMutableTreeNode)tree.getPathForRow(i).getLastPathComponent();
if (node != null) {
ObjectInfo oj = (ObjectInfo)node.getUserObject();
//If it is a reg class
if ( (oj.flag.equals("object")) && (oj.clsId == 520) ) {
tree.setSelectionPath(tree.getPathForRow(i));
break;
}
}
}
getContainer().setRegAnaly(regAnaly);
for (int i = 1; i <= tree.getRowCount(); i++) {
DefaultMutableTreeNode node = (DefaultMutableTreeNode)tree.getPathForRow(i).getLastPathComponent();
if (node != null) {
ObjectInfo oj = (ObjectInfo)node.getUserObject();
//If it is a reg class
if ( (oj.flag.equals("object")) && (oj.clsId == 510) ) {
tree.setSelectionPath(tree.getPathForRow(i));
break;
}