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

[1333 byte] By [Sarayu_Geethajalia] at [2007-10-3 1:59:38]
# 1
Can some one help me
Sarayu_Geethajalia at 2007-7-14 18:58:20 > top of Java-index,Other Topics,Algorithms...
# 2
Probably, but if you want to find someone you should try looking in the right place. This forum is for discussion of algorithms, not SWT.
YAT_Archivista at 2007-7-14 18:58:20 > top of Java-index,Other Topics,Algorithms...