[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.tools] Does layout need to be called explicitly?
|
If I add a Component to a Composite, doesn't it layout automatically?
This is what one would expect to happen.
...
> The problem you are having about not seeing anything could be because you
> have added a bunch of children and not told the parent to lay out again.
> In the example below, shell.open() causes the children to be laid out by
> the FillLayout which cascades the layout all the way down the widget tree.
> If your shell is already open, you can get the same result be calling
> "layout(true)" on your top widget. For more info on layouts see the
> article "Understanding Layouts in SWT" posted on the Eclipse Corner
website under articles.
>
...