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.

index.php/fa/15394/0/

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));
			
	tree1.pack();
	composite1.pack();
				
}

...



(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).

index.php/fa/15395/0/

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

Thanks a lot,
ND
  • Attachment: pic_2.jpg
    (Size: 23.68KB, Downloaded 219 times)
  • Attachment: pic_1.jpg
    (Size: 20.59KB, Downloaded 229 times)
Previous Topic:TreeViewer Custom Expand
Next Topic:TableViwer Alternating rows Colors
Goto Forum:
  


Current Time: Mon Nov 24 16:44:31 GMT 2014

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

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