Source Code : SWT FillLayout

Java Is Open Source Programming Language You Can Download From Java and Java Libraries From http://www.oracle.com. Click Here to download
We provide this code related to title for you to solve your developing problem easily. Libraries which is import in this program you can download from http://www.oracle.com. Click Here or search from google with Libraries Name you get jar file related it

SWT FillLayout


import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.FillLayout;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Composite;

public class Ch5Composite extends Composite {

  public Ch5Composite(Composite parent) {
    super(parent, SWT.NONE);

    FillLayout layout = new FillLayout(SWT.VERTICAL);
    setLayout(layout);
    for (int i = 0; i < 8; ++i) {
      Button button = new Button(this, SWT.NONE);
      button.setText("Sample Text");
    }
  }
}

           
       

Thank with us