|
TDAT: private Composite createComposite(Composite parent, int numColumns) { |
|
Composite composite = new Composite(parent, SWT.NULL); |
|
|
|
// GridLayout |
|
GridLayout layout = new GridLayout(); |
|
layout.numColumns = numColumns; |
|
layout.makeColumnsEqualWidth = false; |
|
layout.marginHeight = 0; |
|
layout.marginWidth = 0; |
|
composite.setLayout(layout); |
|
|
|
// GridData |
|
GridData data = new GridData(SWT.FILL, SWT.FILL, true, false); |
|
composite.setLayoutData(data); |
|
return composite; |
|
} |
|
COM: <s> creates composite control and sets the default layout data </s> |
|
|
|
|