Dialog resize in SWT
Hi,
I have a composite in a dialog.
I want to resize the dialog and when the dialog is resizing i want to update the composite accordigly.
I am using SWT.RESIZE | SWT.MAX for the dialog which is ok.
How do I set the resizing of the composite also?
To resize the dialog:
===============
setShellStyle(SWT.DIALOG_TRIM | SWT.RESIZE | SWT.MAX
| SWT.APPLICATION_MODAL);
how to resize the composite :
=======================
protected Control createDialogArea(Composite parent) {
Composite container = (Composite) super.createDialogArea(parent);
final GridLayout gridLayout = new GridLayout();
container.setLayout(gridLayout);
final Composite composite = new Composite(container, SWT.NONE);
final GridData gridData = new GridData(GridData.FILL, GridData.FILL, false, false);
gridData.heightHint = 378;
gridData.widthHint = 667;
composite.setLayoutData(gridData);
-
-
table = tableViewer.getTable();
table.setHeaderVisible(true);
table.setLinesVisible(true);
table.setBounds(19, 93, 645, 280);
final TableColumn mibNameColumn = new TableColumn(table, SWT.NONE);
and using six columns in a table.
Please let me know how to handle this one.
Thanks.
Sarayu

