Reputation: 63
Now the height of the tree depends on the number of elements of the first level. The tree is very large and watch it in a small frame, very uncomfortable.
Upvotes: 0
Views: 597
Reputation: 111142
For RowLayout
you can use a RowData
layout data object to specify the height of a row:
RowData layoutData = new RowData(SWT.DEFAULT, height);
tree.setLayoutData(layoutData);
Upvotes: 1