Forum Discussion
OK... a few things:
First of all, when you install TestComplete, there is a sample project installed that demonstrates working with Java Swing Trees including a sample application to show how it works. I would suggest checking out that sample to figure out how to work with Java Swing Trees. Some basic starter information is https://support.smartbear.com/testcomplete/docs/reference/test-objects/controls/desktop/java/tree/index.html
Secondly, you are referencing your object using the Sys tree... and while you can do so, your screenshot shows that the object you are attempting to work with is mapped in the NameMapping portion of your project. This is a MUCH more stable and MUCH easier way to work with object identification. You can even use the Aliasing to "shorten" your object paths to something more manageable. There are a lot of "panes" and browsers and such in your object path that appear to simply be containers for the tree it self... You might be able to filter some of that down.
Finally, you gave us the code that you are using for identifying the object, however, you're not showing us any of the code that you are using to do the expand or select. If you are having problems, it would be helpful to see the code, get text of any error messages you are getting, even get a screenshot showing the methods of the object you are trying to reference.