GridData gdLSize = new GridData(GridData.FILL_BOTH);
GridData gdLSize = new GridData();
    private void placeComponents()    {        GridLayout glContent = new GridLayout();        glContent.verticalSpacing = 4;        glContent.horizontalSpacing = 6;        glContent.marginHeight = 4;        glContent.marginWidth = 2;        glContent.numColumns = 9;        cmpContent = new Composite(shell, SWT.NONE);        cmpContent.setLayout(glContent);        Label lblFont = new Label(cmpContent, SWT.NONE);        GridData gdLFont = new GridData(GridData.FILL_BOTH);        gdLFont.heightHint = 22;        lblFont.setLayoutData(gdLFont);        lblFont.setText("Font:");        cmbFontNames = new Combo(cmpContent, SWT.DROP_DOWN | SWT.READ_ONLY);        GridData gdCMBFontNames = new GridData(GridData.FILL_BOTH);        gdCMBFontNames.horizontalSpan = 8;        cmbFontNames.setLayoutData(gdCMBFontNames);        cmbFontNames.addSelectionListener(this);        Label lblSize = new Label(cmpContent, SWT.NONE);        GridData gdLSize = new GridData(GridData.FILL_BOTH);        gdLSize.heightHint = 22;        lblSize.setLayoutData(gdLSize);        lblSize.setText("Size:");        iscFontSizes = new IntegerSpinControl(cmpContent, SWT.NONE, (int) fdCurrent.getSize());        GridData gdISCFontSizes = new GridData(GridData.FILL_BOTH);        gdISCFontSizes.horizontalSpan = 3;        iscFontSizes.setLayoutData(gdISCFontSizes);        iscFontSizes.setMinimum(MIN_FONT_SIZE);        iscFontSizes.setMaximum(MAX_FONT_SIZE);        iscFontSizes.addListener(this);        Label lblForeground = new Label(cmpContent, SWT.NONE);        GridData gdLForeground = new GridData(GridData.FILL_BOTH);        gdLForeground.horizontalSpan = 2;        lblForeground.setLayoutData(gdLForeground);        lblForeground.setText("Foreground Color:");        fccColor = new FillChooserComposite(cmpContent, SWT.NONE, cdCurrent, false, false);        GridData gdFCCColor = new GridData(GridData.FILL_BOTH);        gdFCCColor.horizontalSpan = 3;        fccColor.setLayoutData(gdFCCColor);        fccColor.addListener(this);        Label lblStyle = new Label(cmpContent, SWT.NONE);        GridData gdLStyle = new GridData(GridData.FILL_BOTH);        gdLStyle.heightHint = 22;        //        gdLStyle.horizontalSpan = 2;        lblStyle.setLayoutData(gdLStyle);        lblStyle.setText("Style:");        btnBold = new Button(cmpContent, SWT.TOGGLE);        GridData gdBBold = new GridData(GridData.FILL_BOTH);        btnBold.setLayoutData(gdBBold);        // TODO: This should be an image        btnBold.setText("B");        btnBold.addSelectionListener(this);        btnBold.setSelection(fdCurrent.isBold());        btnItalic = new Button(cmpContent, SWT.TOGGLE);        GridData gdBItalic = new GridData(GridData.FILL_BOTH);        btnItalic.setLayoutData(gdBItalic);        // TODO: This should be an image        btnItalic.setText("I");        btnItalic.addSelectionListener(this);        btnItalic.setSelection(fdCurrent.isItalic());        btnUnderline = new Button(cmpContent, SWT.TOGGLE);        GridData gdBUnderline = new GridData(GridData.FILL_BOTH);        btnUnderline.setLayoutData(gdBUnderline);        // TODO: This should be an image        btnUnderline.setText("U");        btnUnderline.addSelectionListener(this);        btnUnderline.setSelection(fdCurrent.isUnderline());        Label lblFormat = new Label(cmpContent, SWT.NONE);        GridData gdLFormat = new GridData(GridData.VERTICAL_ALIGN_FILL);        gdLFormat.horizontalSpan = 2;        gdLFormat.verticalSpan = 2;        lblFormat.setLayoutData(gdLFormat);        lblFormat.setText("Format:");        cbStrikethru = new Button(cmpContent, SWT.CHECK);        GridData gdCBStrikethru = new GridData(GridData.FILL_BOTH);        gdCBStrikethru.horizontalSpan = 2;        gdCBStrikethru.heightHint = 20;        cbStrikethru.setLayoutData(gdCBStrikethru);        cbStrikethru.addSelectionListener(this);        cbStrikethru.setText("Strikethrough");        cbStrikethru.setSelection(fdCurrent.isStrikethrough());        Label lblDummy1 = new Label(cmpContent, SWT.NONE);        GridData gdLDummy1 = new GridData(GridData.FILL_BOTH);        gdLDummy1.horizontalSpan = 6;        lblDummy1.setLayoutData(gdLDummy1);        cbWrap = new Button(cmpContent, SWT.CHECK);        GridData gdCBWrap = new GridData(GridData.FILL_BOTH);        gdCBWrap.horizontalSpan = 2;        gdCBWrap.heightHint = 20;        cbWrap.setLayoutData(gdCBWrap);        cbWrap.addSelectionListener(this);        cbWrap.setText("Wrap");        cbWrap.setSelection(fdCurrent.isWordWrap());        createRotationPanel();        createAlignmentPanel();        FillLayout flPreview = new FillLayout();        flPreview.marginHeight = 2;        flPreview.marginWidth = 3;        grpPreview = new Group(cmpContent, SWT.NONE);        grpPreview.setText("Preview");        GridData gdGRPPreview = new GridData(GridData.FILL_BOTH);        gdGRPPreview.horizontalSpan = 9;        grpPreview.setLayoutData(gdGRPPreview);        grpPreview.setLayout(flPreview);        fcPreview = new FontCanvas(grpPreview, SWT.NONE, fdCurrent, cdCurrent, true, true, true);        fcPreview.setBackground(new Color(Display.getDefault(), 254, 254, 254));        createButtonPanel();    }