Source:
<code>public void createControl(final Composite parent) { container = new Composite(parent, SWT.NULL); container.setLayout(new GridLayout()); sash = new SashForm(container, SWT.VERTICAL); sash.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true)); sash.setBackground(sash.getDisplay().getSystemColor(SWT.COLOR_GRAY)); outputsScrolledComposite = new ScrolledComposite(sash, SWT.V_SCROLL); outputsScrolledComposite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true)); outputsContainer = new Composite(outputsScrolledComposite, SWT.NONE); final GridLayout outputsLayout = new GridLayout(4, false); outputsLayout.marginHeight = 10; outputsLayout.marginWidth = 0; outputsContainer.setLayout(outputsLayout); outputsScrolledComposite.setContent(outputsContainer); outputsScrolledComposite.setExpandHorizontal(true); outputsScrolledComposite.setExpandVertical(true); outputsContainer.layout(); outputsScrolledComposite.setMinSize(outputsContainer.computeSize(SWT.DEFAULT, SWT.DEFAULT).x, outputsContainer.computeSize(SWT.DEFAULT, SWT.DEFAULT).y-5); tableContainer = new Composite(sash, SWT.NONE); final GridLayout tableLayout = new GridLayout(); tableLayout.marginHeight = 0; tableLayout.marginWidth = 0; tableContainer.setLayout(tableLayout); <START> previewTable = new CustomEventsTablePreview(new CustomTxtTraceDefinition(), tableContainer, 0); <END> previewTable.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true)); if (wizard.definition != null) { loadDefinition(wizard.definition); } setControl(container); }</code><technical_language>avoid this new class altogether TmfEventsTable call generate method for columns in constructor</technical_language>

Target:
public void createControl(final Composite parent) { container = new Composite(parent, SWT.NULL); container.setLayout(new GridLayout()); sash = new SashForm(container, SWT.VERTICAL); sash.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true)); sash.setBackground(sash.getDisplay().getSystemColor(SWT.COLOR_GRAY)); outputsScrolledComposite = new ScrolledComposite(sash, SWT.V_SCROLL); outputsScrolledComposite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true)); outputsContainer = new Composite(outputsScrolledComposite, SWT.NONE); final GridLayout outputsLayout = new GridLayout(4, false); outputsLayout.marginHeight = 10; outputsLayout.marginWidth = 0; outputsContainer.setLayout(outputsLayout); outputsScrolledComposite.setContent(outputsContainer); outputsScrolledComposite.setExpandHorizontal(true); outputsScrolledComposite.setExpandVertical(true); outputsContainer.layout(); outputsScrolledComposite.setMinSize(outputsContainer.computeSize(SWT.DEFAULT, SWT.DEFAULT).x, outputsContainer.computeSize(SWT.DEFAULT, SWT.DEFAULT).y-5); tableContainer = new Composite(sash, SWT.NONE); final GridLayout tableLayout = new GridLayout(); tableLayout.marginHeight = 0; tableLayout.marginWidth = 0; tableContainer.setLayout(tableLayout); previewTable = new TmfEventsTable(tableContainer, 0, CustomEventTableColumns.generateColumns(new CustomTxtTraceDefinition())); previewTable.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true)); if (wizard.definition != null) { loadDefinition(wizard.definition); } setControl(container); }