|
Can I add or remove children of a node on the fly |
|
|
Yes. Have your node subclass AbstractNode. Have your Children object subclass Children.Keys. As needed, call setKeys() on the Children object.
One caveat: Do not ever try to add/remove children from a node you did not create (unless it has an API that explicitly gives you permission to do that); occasionally people try to add child nodes to nodes for things like java files. If it works at all it's by accident.
Source: NetBeans FAQ
Related Tips
|
Page 1 of 0 ( 0 comments )
You can share your information about this topic using the form below!
Please do not post your questions with this form! Thanks.