When working with the standard widget toolkit (SWT), I usually use something like this to define my GridLayout
:
layout.marginTop = layout.marginBottom =
layout.marginLeft = layout.marginRight =
layout.horizontalSpacing = layout.verticalSpacing = 20
It works in java but not in scala.
It gives me type mismatch; Found: Unit Required: Int
.
So how can this solve it?