| [news.eclipse.platform.swt] Re: problems with my composite |
setSize() sets a Control's size, but if you are using layouts to lay out your controls then size values set with setSize() will be overwritten by the layout when it does its work. If you want to specify control sizes while using a layout then you should provide this in a layout data object. For example, if you're using GridLayout then you can set a GridData on it to specify control sizes. Most other layouts have similar corresponding layout data objects.
Grant
Ilja