Children in Enumeration

Posted by marionmaiden on Stack Overflow See other posts from Stack Overflow or by marionmaiden
Published on 2010-05-27T20:03:17Z Indexed on 2010/05/27 20:11 UTC
Read the original article Hit count: 284

Filed under:
|
|

Hello

I have a enumeration for elements in a JTree

When I find some specific element in this JTree, I want to check it's children. Do the method children() in a Enumeration check it's grandcildren too?

For example, let's supose this JTree, considering the identation as new levels of the tree:

  • Fruits
    • apple
    • grape
      • orange
      • peach
        • pineapple
      • strawberry
    • banana

If I get the children of grape, will I have just orange and peach or will I get peach children (pineaple) too?

© Stack Overflow or respective owner

Related posts about java

Related posts about enumeration