Re: How to change BeanNode icon at runtime?
Benno Markiewicz <[email protected]>
| Newsgroups | gmane.comp.java.netbeans.modules.openide.devel |
|---|---|
| Message-ID | <CAA_aP4hzfTcXx=mCdFzvBStf2tmzQUJWfwzfWdd+hX4Tmf7=WQ@mail.gmail.com> |
It depends on your node creation. If you are using Children.Keys use refreshKey http://bits.netbeans.org/dev/javadoc/org-openide-nodes/org/openide/nodes/Children.Keys.html#refreshKey-T- At least this is what the javadoc says: if your notion of what the node for a given key changes (but the key stays the same), you can call refreshKey(T) <http://bits.netbeans.org/dev/javadoc/org-openide-nodes/org/openide/nodes/Children.Keys.html#refreshKey-T-> . With kind regards, markiewb 2016-04-25 14:06 GMT+02:00 <[email protected]>: > I am extending BeanNode class. And on 1 of property change I want to > change the icon of that node. Property change does not occur in > ChildFactory class. So how can I refresh/update the node icon ? >