manipulate jtree node via references seems not working (swing)
问题 I have the following problem (this is related to my post blink a tree node): I have a custom cell renderer. In some part of my code I create a new DefaultMutableTreeNode and store it in a list public static List<DefaultMutableTreeNode> nodes = new ArrayList<DefaultMutableTreeNode>() //in some time DefaultMutableTreeNode aNode = new DefaultMutableTreeNode("SomeValue"); nodes.add(node); In my cell renderer I do: public Component getTreeCellRendererComponent(JTree tree, Object value, boolean