Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JFace » treeviewer resize issue
treeviewer resize issue [message #1065796] Thu, 27 June 2013 13:51
n d is currently offline n dFriend
Messages: 11
Registered: February 2013
Junior Member
Hi all,

I have 3 treeviewer objects in one view in a row like disposition and I want them to increase their size equally if I maximize/minimize the view/eclipse window.


here is my code:

Composite composite = new Composite(parent, SWT.NONE);
composite.setLayout(new GridLayout(1, false));

	Composite composite1 = new Composite(composite, SWT.NONE);
	composite1.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));
			composite1.setLayout(new GridLayout(1, false));
	treeViewer1 = new TreeViewer(composite1, SWT.BORDER);
	tree1 = treeViewer1.getTree();
	tree1.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));


(the block is similar for treeviewer 2 and 3)

However, when I maximize/minimize the view or the eclipse window and the contents of a certain tree are bigger than the viewing space, that tree viewing space gets bigger than the others).


Is there a way to prevent this resize behaviour due to content size? or is there something that I'm missing

Thanks a lot,
  • Attachment: pic_2.jpg
    (Size: 23.68KB, Downloaded 826 times)
  • Attachment: pic_1.jpg
    (Size: 20.59KB, Downloaded 833 times)
Previous Topic:TableViwer Alternating rows Colors
Next Topic:TableViewer Sorting and MultiSelectionBinding
Goto Forum:

Current Time: Sat May 26 19:54:21 GMT 2018

Powered by FUDForum. Page generated in 0.01451 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top