CheckedTreeNode (final String group) { for (int i = 0; i < getTreeRoot().getChildCount(); i++) { CheckedTreeNode node = (CheckedTreeNode)getTreeRoot().getChildAt(i); ToolsGroup g = (ToolsGroup)node.getUserObject(); if (Objects.equals(group, g.getName())) return node; } return null; }