Composite composite = new Composite(parent, SWT.NONE); GridLayout layout = new GridLayout(2, false); composite.setLayout(layout); GridData data = new GridData(SWT.FILL, SWT.FILL, true, true); composite.setLayoutData(data);In this example, the composite is created with a GridLayout of 2 columns. The GridData layout data is set to fill both horizontal and vertical space, and to span the entire width of the parent widget. This method is part of the org.eclipse.swt.widgets package library, which is a part of the Eclipse Foundation's SWT (Standard Widget Toolkit) UI library for Java.