Skip to main content



      Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » How to get a Group to fill a scrollable composite
How to get a Group to fill a scrollable composite [message #432644] Wed, 24 March 2004 13:46
Eclipse UserFriend
I have a view that contains a ScrollableComposite (sc in the code
snippets below). The scrollable composite contains a group and I would
like to have the group fill the available area. Here is what I am doing:

Composite control = buildGroupControl( );
control.layout( true );
control.setSize(control.computeSize(SWT.DEFAULT, SWT.DEFAULT));
sc.setContent( control );
GridData ggd = new GridData( GridData.FILL_BOTH );
control.setLayoutData( ggd );

However, this does not get the control to fill the area of the view.
When the ScrolledComposite is created I do

sc.setBounds( parent.getShell().getClientArea() );
Previous Topic:Why doesnt my TableTreeViewer drilldown?
Next Topic:SWT Browser - viewing a page with an embedded applet
Goto Forum:
  


Current Time: Mon Nov 03 21:52:12 EST 2025

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

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

Back to the top