My tree is coming collapsed when i run my application, i have tried using functions like expandRow(int), setExpandedState(Treepath, boolean), but it doesn't work. Also if i use setExpandedState(Treepath, boolean) function, then in collapsed state Treepath argument will be null, so there is no point in using it. please help me!! thanks in advance.
posted 15 years ago
HI Nikhil, Not sure what you have tried. The example below works great. To run it just type: java ExpandDemo To run it and have all folders expanded type: java ExpandDemo true