btnAccept.setText("Ok");
btnAccept.setText("   OK   ");
    private void placeComponents()    {        GridLayout glContent = new GridLayout();        glContent.numColumns = 2;        glContent.horizontalSpacing = 5;        glContent.verticalSpacing = 5;        cmpContent = new Composite(shell, SWT.NONE);        cmpContent.setLayout(glContent);        GridLayout glGeneral = new GridLayout();        glContent.numColumns = 2;        glContent.horizontalSpacing = 5;        glContent.verticalSpacing = 5;        cmpGeneral = new Composite(cmpContent, SWT.NONE);        GridData gdCMPGeneral = new GridData(GridData.FILL_BOTH);        cmpGeneral.setLayoutData(gdCMPGeneral);        cmpGeneral.setLayout(glGeneral);        Label lblStartColor = new Label(cmpGeneral, SWT.NONE);        GridData gdLBLStartColor = new GridData();        lblStartColor.setLayoutData(gdLBLStartColor);        lblStartColor.setText("Start Color:");        fccStartColor = new FillChooserComposite(cmpGeneral, SWT.NONE, gCurrent.getStartColor(), false, false);        GridData gdFCCStartColor = new GridData(GridData.FILL_HORIZONTAL);        fccStartColor.setLayoutData(gdFCCStartColor);        fccStartColor.addListener(this);        Label lblEndColor = new Label(cmpGeneral, SWT.NONE);        GridData gdLBLEndColor = new GridData();        lblEndColor.setLayoutData(gdLBLEndColor);        lblEndColor.setText("End Color:");        fccEndColor = new FillChooserComposite(cmpGeneral, SWT.NONE, gCurrent.getEndColor(), false, false);        GridData gdFCCEndColor = new GridData(GridData.FILL_HORIZONTAL);        fccEndColor.setLayoutData(gdFCCEndColor);        fccEndColor.addListener(this);        Label lblDummy = new Label(cmpGeneral, SWT.NONE);        GridData gdLBLDummy = new GridData(GridData.FILL_BOTH);        lblDummy.setLayoutData(gdLBLDummy);        createRotationPanel();        /*         * cbCyclic = new Button(cmpContent, SWT.CHECK); GridData gdCBCyclic = new GridData(GridData.FILL_HORIZONTAL);         * gdCBCyclic.horizontalSpan = 4; cbCyclic.setLayoutData(gdCBCyclic); cbCyclic.setText("Is Cyclic");         * cbCyclic.setSelection(gCurrent.isCyclic());         */        Group grpPreview = new Group(cmpContent, SWT.NONE);        GridData gdGRPPreview = new GridData(GridData.FILL_BOTH);        gdGRPPreview.horizontalSpan = 2;        grpPreview.setLayoutData(gdGRPPreview);        grpPreview.setLayout(new FillLayout());        grpPreview.setText("Preview");        cnvPreview = new FillCanvas(grpPreview, SWT.NO_FOCUS);        cnvPreview.setFill(gCurrent);        GridLayout glButtons = new GridLayout();        glButtons.numColumns = 2;        glButtons.horizontalSpacing = 5;        glButtons.verticalSpacing = 5;        glButtons.marginHeight = 2;        glButtons.marginWidth = 7;        cmpButtons = new Composite(cmpContent, SWT.NONE);        GridData gdCMPButtons = new GridData(GridData.FILL_HORIZONTAL);        gdCMPButtons.horizontalSpan = 4;        cmpButtons.setLayoutData(gdCMPButtons);        cmpButtons.setLayout(glButtons);        btnAccept = new Button(cmpButtons, SWT.PUSH);        GridData gdBTNAccept = new GridData(GridData.FILL_HORIZONTAL | GridData.HORIZONTAL_ALIGN_END);        gdBTNAccept.grabExcessHorizontalSpace = true;        btnAccept.setLayoutData(gdBTNAccept);        btnAccept.setText("Ok");        btnAccept.addSelectionListener(this);        btnCancel = new Button(cmpButtons, SWT.PUSH);        GridData gdBTNCancel = new GridData(GridData.HORIZONTAL_ALIGN_END);        gdBTNCancel.grabExcessHorizontalSpace = false;        btnCancel.setLayoutData(gdBTNCancel);        btnCancel.setText("Cancel");        btnCancel.addSelectionListener(this);    }