Stealing the contents of another application's tree view

Posted by User1 on Stack Overflow See other posts from Stack Overflow or by User1
Published on 2010-03-22T20:37:19Z Indexed on 2010/03/22 20:41 UTC
Read the original article Hit count: 221

Filed under:
|
|

I have an application with a very large TreeView control in Java. I want to get the contents of the tree control in a list (just strings not a JList) of XPath-like elements of leaves only. Here's an example root

|-Item1
  |-Item1.1
    |-Item1.1.1 (leaf)
  |-Item1.2 (leaf)
|-Item2
  |-Item2.1 (leaf)

Would output:

/Item1/Item1.1/Item1.1.1
/Item1/Item1.2
/Item2/Item2.1

I don't have any source code or anything handy like that. Is there I tool I can use to dig into the Window item itself and pull out this data? I don't mind if there are a few post-processing steps because typing it in by hand is my only other option.

© Stack Overflow or respective owner

Related posts about treeview

Related posts about java