private Composite createWidgets( Composite parent ) {
comp = new Composite(parent, SWT.NONE);
xlabel = new Label(comp, SWT.NONE);
xlabel.setText(Messages.GridStyleConfigurator_HSpacing);
Spinner x = new Spinner(comp, SWT.NONE);
Combo xUnit = new Combo(comp, SWT.READ_ONLY);
xSpacer = new SpacerController(x, xUnit);
ylabel = new Label(comp, SWT.NONE);
ylabel.setText(Messages.GridStyleConfigurator_VSpacing);
Spinner y = new Spinner(comp, SWT.NONE);
Combo yUnit = new Combo(comp, SWT.READ_ONLY);
ySpacer = new SpacerController(y, yUnit);
colorLabel = new Label(comp, SWT.NONE);
colorLabel.setText(Messages.GridStyleConfigurator_LineColor);
colorDisplay = new Label(comp, SWT.NONE);
colorDisplay.addListener(SWT.Resize, new Listener(){
public void handleEvent( Event event ) {
updateColorButton();
}
});
color = new Button(comp, SWT.PUSH);
color.setText(Messages.GridStyleConfigurator_ChangeColor);
lineStyleLabel = new Label(comp, SWT.NONE);
lineStyleLabel.setText(Messages.GridStyleConfigurator_LineStyle);
lineStyle = new Combo(comp, SWT.NONE);
lineStyle.setItems(LINE_STYLES);
lineStyle.select(0);
lineWidthLabel = new Label(comp, SWT.NONE);
lineWidthLabel.setText(Messages.GridStyleConfigurator_LineWidth);
lineWidth = new Spinner(comp, SWT.NONE);
lineWidth.setIncrement(1);
lineWidth.setDigits(0);
lineWidth.setMinimum(1);
message = new Label(comp, SWT.WRAP);