I'm not going to code your app for you, but my code was just showing you the three simple steps to make your tree scrollable, viz:
create the tree
create a scroll pane usinhg the tree as its parameter
add the scroll pane to your frame
ps: "It doesn't work in my application" tells me nothing useful.
Reputation Points: 1924
Solved Threads: 951
Posting Expert
Offline 5,788 posts
since Apr 2008