How to set initial size of a TreeViewer?

Posted by Jeff on Stack Overflow See other posts from Stack Overflow or by Jeff
Published on 2010-05-30T14:53:56Z Indexed on 2010/05/30 15:02 UTC
Read the original article Hit count: 241

Filed under:
|

Hello,

I'm using a TreeViewer within a jface WizardPage and the initial input into the tree causes the WizardPage to grow vertically so that it can show all of the tree's values. When expanding one of the tree's values, then the vertical scrollbar works as expected. I'd like to be able to set the tree's size initially so that it is fixed and the scrollbar is already shown when the WizardPage is first drawn, but doing this isn't particularly obvious to me - the setSize method on the TreeViewer's Tree doesn't seem to do anything.

Any help would be appreciated!

© Stack Overflow or respective owner

Related posts about swt

Related posts about jface