Children.getNodes() gives copy of nodes
"rsobies" <[email protected]>
| Newsgroups | gmane.comp.java.netbeans.modules.openide.devel |
|---|---|
| Message-ID | <[email protected]> |
thank you Tim. Do you suggest that if a node is expanded by the user and its subnodes are created on demand and after collapsing, the subnodes can be destroyd by gc? or maybe in this case they have strong reference kept by BeanTreeView? i try to understand the mechanism of cacheing nodes in Tree. in my application i modify state of subnodes when Tree is not fully expanded yet. sometimes i loose state of subnode and sometimes not, seems randomly maybe there is a way to get nodes through BeanTree object to make sure that new refereces are kept by the tree?