Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Getting children of node in JTree?  RSS feed

 
Max Power
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello, how can i get the children of a node in a jtree?
i searches the api, but i found nothing....:-(
any ideas?

THANKS
 
Dirk Schnelle
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can use the TreeModel to get access to the children.

http://java.sun.com/j2se/1.4.2/docs/api/javax/swing/tree/TreeModel.html

/Dirk
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!