[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.swt] Re: Equally sized widgets

Either use GridLayout with equals column size or switch to FormLayout and specify a percentage in vertical direction.

Regards
Stefan

Marian Schedenig wrote:
Rich Kulp wrote:


Try FillLayout instead (set its fillayout.type = FillLayout.VERTICAL).

This will make them all the same size, they will as wide as the widest
one and as tall as the tallest one.


That works fine (SWT.VERTICAL instead of FillLayout.VERTICAL), except for
one problem, which I admittedly forgot to mention before: Above each of my
three table containers I also have a Text label, which of course should
keep its default height. I suppose I could add another layer of composites
two group each label/table pair and have those get the same height through
FillLayout, but perhaps there is another way?

Thanks,
Marian.