• Post Reply Bookmark Topic Watch Topic
  • New Topic

TreeWillExpand question

 
eric moon
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need to programatically determine some of the nodes in my tree, and I need to put that functionality into my treeWill Expand method. But I can't figure out how to get a handle on the node that has just been expanded. I thought it would be the lastSelectedPath, but that doesn't seem to be the case.
Clues? I'll keep looking, maybe I'll find it somewhere....
thanx
e
 
eric moon
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, I'll answer my own question, in case anybody's interested. The handle to the node just expanded is:
teListener.getPath().getLastPathComponent();
The node expanded is the last node in the path that leads to it.
Hope this helps somebody someday.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!