Hi. I'm drawing a large tree structure. The tree class extends JPanel, and I need to put it into a JScrollPane. The tree will not always be the same size every time it is drawn, and I think I need some way to tell the JScrollPane how big the tree is, in order for it to scroll. I've been told not to make the tree drawing a client of the ScrollPane, but rather just "stuff it into the ScrollPane".
Please help.
Thanks
Please help.
Thanks