SWT ScrolledComposite not visible (until it’s parent is satisfied)

A ScrolledComposite has some special requirements to its parent, which is quite unusual in OOP with composite patterns. The content should be parent agnostic.

The ScrollComposite absolutely refuses to work properly if the parent composite does not have the FillLayout.

Hopefully it took you not the two hours I have spent until finding this undocumented fact.

Leave a Reply

Your email address will not be published. Required fields are marked *