[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.platform.swt] Re: table layouting

Royi,

Perhaps the GridData of the parent composite needs to be set to grab
available space?  If this doesn't help then posting a more complete
snippet would provide some helpful context since I don't see anything
wrong with your Table layout code.

Grant


Royi Ronen wrote:

> Hi,
> I try to make a table be expanded all over an editor, using the following
> code:

> 		/** Create the Table*/
>         table = new Table(composite, SWT.NONE | SWT.SINGLE |
> SWT.FULL_SELECTION |
>                                    SWT.BORDER | SWT.V_SCROLL |
> SWT.H_SCROLL);

>         table.setLayoutData(new GridData(GridData.FILL_BOTH));
>         table.setHeaderVisible(true); 
>         table.addSelectionListener (this);


> but it shos only on the upper left side of the editor, not covering it all.

> How can I solve it?

> Thanks,
> Royi Ronen, IBM Research laboratories.