[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.platform.swt] Re: TabItem and Table
|
Philippe,
You do not need to set a FillLayout on the TabFolder, the TabFolder by
default sets the size of its TabItem content to fill the client area of the
tab item.
> tTableErr.setLayoutData(
> new GridData(GridData.FILL_BOTH | GridData.GRAB_HORIZONTAL |
> GridData.GRAB_VERTICAL));
You are setting GridData on an item that is in a FillLayout - not good -
since FillLayout does not have any associated LayoutData you get away with
it in this case but in general it will cause a ClassCastException if you set
the wrong type of layout data in a control (I think this is just a remnant
of the fact that you removed an intermediate Composite).