Add 'expand' button to JTree node that has no children?

Posted by thedude19 on Stack Overflow See other posts from Stack Overflow or by thedude19
Published on 2010-03-18T19:07:59Z Indexed on 2010/03/18 19:11 UTC
Read the original article Hit count: 300

Filed under:
|
|

I'd like to add the 'expand' button to my JTree's nodes to indicate that they are expandable. The catch is that they have no children until the user clicks on them (due to processing that happens in the background).

Is there any way I can set a node as a parent or having children without it actually having children?

Thanks

© Stack Overflow or respective owner

Related posts about java

Related posts about swing