I have written this stuff but it won't provide me the resizable feature of table.
Composite resultTableComposite = getToolkit().createComposite( parent );
GridData gridData = new GridData( SWT.FILL, SWT.FILL, true, true, 1, 1 );
gridData.heightHint = 300;
gridData.widthHint = 250;
resultTableComposite.setLayoutData( gridData );
TableColumnLayout tableLayout = new TableColumnLayout();
resultTableComposite.setLayout( tableLayout );
resultTable = new TableViewer( resultTableComposite,
SWT.MULTI | SWT.BORDER | SWT.V_SCROLL | SWT.FULL_SELECTION );
getToolkit().adapt( resultTable.getTable() );
resultTable.getTable().setLinesVisible( true );
resultTable.getTable().setHeaderVisible( true );
The following image shows only 3 rows after filling 3 rows scroll added, but if we want to see 4 elements without scrolling we cant see. we want we can able to expand on resize the table:
