title: SWT - How do you re-size/set size of an a Composite residing inside another composite?
body: <p>//I have a composite within a scrolled composite.</p>
  
  <pre><code>final Composite c = new Composite(scrolledComposite, SWT.NONE); //1
  c.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));
  c.setLayout(new GridLayout(1, false));
  </code></pre>
  
  <p>//I have a for loop that adds composites to composite c</p>
  
  <pre><code>for(int i = 0; i&lt;100; i++){ 
  
      Composite b = new Composite(c, SWT.BORDER);
      b.setBackground(SWTResourceManager.getColor(SWT.COLOR_LIST_SELECTION));
      b.setLayout(new GridLayout(2, false));
      b.setBounds(112, 70, 268, 69);
  </code></pre>
  
  <p>//and then some controllers added to that inner composite</p>
  
  <pre><code>    Label lblNewLabel_2 = new Label(b, SWT.NONE);
      lblNewLabel_2.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 4));
      Image img = new Image(Display.getCurrent(), result.get(i).getPicturePath());
  
  
  //.... more controllers.
  </code></pre>
  
  <p>// finally I end the loop and add the outer most composite to an scrolled composite.</p>
  
  <pre><code>} // end loop           
      scrolledComposite.setContent(c); //setter content!
      scrolledComposite.setMinSize(c.computeSize(SWT.DEFAULT, SWT.DEFAULT));
  </code></pre>
  
  <p>This all works great, almost. My problem is that the inner composite wont respond to the setBounds method. No matter what I'm writing in it I cant get it to expand. I suspect this have something to do with the layouts.</p>
  
  <p>Anyone got a clue?</p>
  
  <p>Thanks in advance.</p>
  
  <p>Petter</p>