Am I correct in saying that scroll bars should appear by default when they are needed in a JScrollPane? I have a JTree in a JScrollPane and when I expand the tree, the scroll bars do not appear. Does anyone have any suggestions on what could be wrong? Thanks...
Roy Ben Ami
posted 14 years ago
can u add some code? maybe we will spot the problem.
Are you using any special tree cell renderers? A lot of the size of the tree is based off of the size of it's cells. So you may have to implement getPreferredSize() in your tree cell renderers to return the correct size.
Write once, run anywhere, because there's nowhere to hide! - /. A.C.