This week's book giveaway is in the Performance forum. We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson 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);