Is there a better way to test JTree node expanded or not?

Posted by waiting on Stack Overflow See other posts from Stack Overflow or by waiting
Published on 2010-05-19T00:38:35Z Indexed on 2010/05/19 1:30 UTC
Read the original article Hit count: 245

Filed under:
|
|

I want to find a method like isNodeExpanded() to check if a given JTree node is expanded or not, but I can not find it.

I know I can do this by tracking the node expansion with the TreeExpansionListener. Is there a better way?

© Stack Overflow or respective owner

Related posts about java

Related posts about swing