This week's book giveaway is in the Testing forum. We're giving away four copies of The Way of the Web Tester: A Beginner's Guide to Automating Tests and have Jonathan Rasmusson on-line! See this thread for details.
I'm trying to set my JTree to be fully expanded at runtime. I've found the method, setExpandedState(path, state), but I can't figure out how to retrieve the path with out manually selecting it. Any ideas? Regards, Craig Snowbarger
posted 15 years ago
How about something like this? TreePath path = tree.getPathForRow(row); tree.expandPath(path);