Hi Maneesh Godbole,
Ya.You have understood the right thing only. I am using netbeans IDE. I have added the scrollpane to a splitpane's left component which in turn added to a panel statically.Similar to what you have told. The thing is i cant add the tree dynamically in this scrollpane. Thanks.Waiting for your reply.