Label hexLabel = new Label(control, SWT.SINGLE);
hexLabel.setText("Color");
if (multiLine) {
MigLayout layout = new MigLayout("insets 0", "[][][grow]", "[]");
control.setLayout(layout);
redLabel.setLayoutData("cell 0 0, alignx trailing, gapx related");
redSpinner.setLayoutData("cell 1 0, wmin 60,alignx left, gapx related");
redScale.setLayoutData("cell 2 0, grow, width 200:100%:100%");
greenLabel.setLayoutData("cell 0 1, alignx trailing, gapx related");
greenSpinner.setLayoutData("cell 1 1, wmin 60,alignx left, gapx related");
greenScale.setLayoutData("cell 2 1,grow, width 200:100%:100%");
blueLabel.setLayoutData("cell 0 2, alignx trailing, gapx related");
blueSpinner.setLayoutData("cell 1 2, wmin 60,alignx left, gapx related");
blueScale.setLayoutData("cell 2 2,grow, width 200:100%:100%");
hexLabel.setLayoutData("cell 0 3, alignx trailing, gapx related");
colorText.setLayoutData("cell 2 3 2 1,grow, width 200:100%:100%");
}
else {
control.setLayout( new MigLayout("insets 0, flowx", "", ""));
redLabel.setLayoutData("gap related");
redSpinner.setLayoutData("gap unrelated");
greenLabel.setLayoutData("gap related");