private void createFontStylePanel() {
    Label lblStyle = new Label(cmpContent, SWT.NONE);
    lblStyle.setText(Messages.getString("FontDefinitionDialog.Lbl.Style")); // $NON-NLS-1$

    Composite cmpFontStyle = new Composite(cmpContent, SWT.NONE);
    {
      GridLayout layout = new GridLayout(4, false);
      layout.marginWidth = 0;
      layout.marginHeight = 0;
      cmpFontStyle.setLayout(layout);
      GridData gd = new GridData();
      gd.horizontalSpan = 8;
      cmpFontStyle.setLayoutData(gd);
    }

    btnBold = new Button(cmpFontStyle, SWT.TOGGLE);
    {
      GridData gdBBold = new GridData();
      btnBold.setLayoutData(gdBBold);
      btnBold.setImage(UIHelper.getImage("icons/obj16/fnt_style_bold.gif")); // $NON-NLS-1$
      btnBold.setToolTipText(
          Messages.getString("FontDefinitionDialog.Tooltip.Bold")); // $NON-NLS-1$
      btnBold.addSelectionListener(this);
      btnBold.setSelection(fdCurrent.isSetBold() && fdCurrent.isBold());
    }

    btnItalic = new Button(cmpFontStyle, SWT.TOGGLE);
    {
      GridData gdBItalic = new GridData();
      btnItalic.setLayoutData(gdBItalic);
      btnItalic.setImage(UIHelper.getImage("icons/obj16/fnt_style_italic.gif")); // $NON-NLS-1$
      btnItalic.setToolTipText(
          Messages.getString("FontDefinitionDialog.Tooltip.Italic")); // $NON-NLS-1$
      btnItalic.addSelectionListener(this);
      btnItalic.setSelection(fdCurrent.isSetItalic() && fdCurrent.isItalic());
    }

    btnUnderline = new Button(cmpFontStyle, SWT.TOGGLE);
    {
      GridData gdBUnderline = new GridData();
      btnUnderline.setLayoutData(gdBUnderline);
      btnUnderline.setImage(
          UIHelper.getImage("icons/obj16/fnt_style_underline.gif")); // $NON-NLS-1$
      btnUnderline.setToolTipText(
          Messages.getString("FontDefinitionDialog.Tooltip.Underline")); // $NON-NLS-1$
      btnUnderline.addSelectionListener(this);
      btnUnderline.setSelection(fdCurrent.isSetUnderline() && fdCurrent.isUnderline());
    }

    btnStrikethru = new Button(cmpFontStyle, SWT.TOGGLE);
    {
      btnStrikethru.setImage(
          UIHelper.getImage("icons/obj16/fnt_style_Sthrough.gif")); // $NON-NLS-1$
      btnStrikethru.setToolTipText(
          Messages.getString("FontDefinitionDialog.Tooltip.Strikethrough")); // $NON-NLS-1$
      btnStrikethru.addSelectionListener(this);
      btnStrikethru.setSelection(fdCurrent.isSetStrikethrough() && fdCurrent.isStrikethrough());
    }
  }
  private void createAlignmentPanel() {
    new Label(cmpContent, SWT.NONE)
        .setText(Messages.getString("FontDefinitionDialog.Lbl.Alignment")); // $NON-NLS-1$

    Composite cmpAlignment = new Composite(cmpContent, SWT.NONE);
    {
      GridData gdCMPAlignment = new GridData(GridData.FILL_HORIZONTAL);
      gdCMPAlignment.horizontalSpan = 8;
      cmpAlignment.setLayoutData(gdCMPAlignment);
      GridLayout glAlignment = new GridLayout(11, false);
      glAlignment.marginWidth = 2;
      glAlignment.marginHeight = 0;
      cmpAlignment.setLayout(glAlignment);
    }

    btnATopLeft = createAlighmentButton(cmpAlignment);
    btnATopCenter = createAlighmentButton(cmpAlignment);
    btnATopRight = createAlighmentButton(cmpAlignment);
    btnACenterLeft = createAlighmentButton(cmpAlignment);
    btnACenter = createAlighmentButton(cmpAlignment);
    btnACenterRight = createAlighmentButton(cmpAlignment);
    btnABottomLeft = createAlighmentButton(cmpAlignment);
    btnABottomCenter = createAlighmentButton(cmpAlignment);
    btnABottomRight = createAlighmentButton(cmpAlignment);

    if (isFlippedAxes()) {
      btnATopLeft.setToolTipText(
          Messages.getString("FontDefinitionDialog.Tooltip.AlignBottomRight")); // $NON-NLS-1$
      btnATopLeft.setImage(
          UIHelper.getImage("icons/obj28/alignmentbottomright.gif")); // $NON-NLS-1$
      btnATopLeft.getImage().setBackground(btnATopLeft.getBackground());

      btnATopCenter.setToolTipText(
          Messages.getString("FontDefinitionDialog.Tooltip.AlignCenterRight")); // $NON-NLS-1$
      btnATopCenter.setImage(
          UIHelper.getImage("icons/obj28/alignmentcenterright.gif")); // $NON-NLS-1$
      btnATopCenter.getImage().setBackground(btnATopCenter.getBackground());

      btnATopRight.setToolTipText(
          Messages.getString("FontDefinitionDialog.Tooltip.AlignTopRight")); // $NON-NLS-1$
      btnATopRight.setImage(UIHelper.getImage("icons/obj28/alignmenttopright.gif")); // $NON-NLS-1$
      btnATopRight.getImage().setBackground(btnATopRight.getBackground());

      createSeparator(cmpAlignment);

      btnACenterLeft.setToolTipText(
          Messages.getString("FontDefinitionDialog.Tooltip.AlignBottomCenter")); // $NON-NLS-1$
      btnACenterLeft.setImage(
          UIHelper.getImage("icons/obj28/alignmentbottomcenter.gif")); // $NON-NLS-1$
      btnACenterLeft.getImage().setBackground(btnACenterLeft.getBackground());

      btnACenter.setToolTipText(
          Messages.getString("FontDefinitionDialog.Tooltip.AlignCenter")); // $NON-NLS-1$
      btnACenter.setImage(UIHelper.getImage("icons/obj28/alignmentcenter.gif")); // $NON-NLS-1$
      btnACenter.getImage().setBackground(btnACenter.getBackground());

      btnACenterRight.setToolTipText(
          Messages.getString("FontDefinitionDialog.Tooltip.AlignTopCenter")); // $NON-NLS-1$
      btnACenterRight.setImage(
          UIHelper.getImage("icons/obj28/alignmenttopcenter.gif")); // $NON-NLS-1$
      btnACenterRight.getImage().setBackground(btnACenterRight.getBackground());

      createSeparator(cmpAlignment);

      btnABottomLeft.setToolTipText(
          Messages.getString("FontDefinitionDialog.Tooltip.AlignBottomLeft")); // $NON-NLS-1$
      btnABottomLeft.setImage(
          UIHelper.getImage("icons/obj28/alignmentbottomleft.gif")); // $NON-NLS-1$
      btnABottomLeft.getImage().setBackground(btnABottomLeft.getBackground());

      btnABottomCenter.setToolTipText(
          Messages.getString("FontDefinitionDialog.Tooltip.AlignCenterLeft")); // $NON-NLS-1$
      btnABottomCenter.setImage(
          UIHelper.getImage("icons/obj28/alignmentcenterleft.gif")); // $NON-NLS-1$
      btnABottomCenter.getImage().setBackground(btnABottomCenter.getBackground());

      btnABottomRight.setToolTipText(
          Messages.getString("FontDefinitionDialog.Tooltip.AlignTopLeft")); // $NON-NLS-1$
      btnABottomRight.setImage(
          UIHelper.getImage("icons/obj28/alignmenttopleft.gif")); // $NON-NLS-1$
      btnABottomRight.getImage().setBackground(btnABottomRight.getBackground());
    } else {
      btnATopLeft.setToolTipText(
          Messages.getString("FontDefinitionDialog.Tooltip.AlignTopLeft")); // $NON-NLS-1$
      btnATopLeft.setImage(UIHelper.getImage("icons/obj28/alignmenttopleft.gif")); // $NON-NLS-1$
      btnATopLeft.getImage().setBackground(btnATopLeft.getBackground());

      btnATopCenter.setToolTipText(
          Messages.getString("FontDefinitionDialog.Tooltip.AlignTopCenter")); // $NON-NLS-1$
      btnATopCenter.setImage(
          UIHelper.getImage("icons/obj28/alignmenttopcenter.gif")); // $NON-NLS-1$
      btnATopCenter.getImage().setBackground(btnATopCenter.getBackground());

      btnATopRight.setToolTipText(
          Messages.getString("FontDefinitionDialog.Tooltip.AlignTopRight")); // $NON-NLS-1$
      btnATopRight.setImage(UIHelper.getImage("icons/obj28/alignmenttopright.gif")); // $NON-NLS-1$
      btnATopRight.getImage().setBackground(btnATopRight.getBackground());

      createSeparator(cmpAlignment);

      btnACenterLeft.setToolTipText(
          Messages.getString("FontDefinitionDialog.Tooltip.AlignCenterLeft")); // $NON-NLS-1$
      btnACenterLeft.setImage(
          UIHelper.getImage("icons/obj28/alignmentcenterleft.gif")); // $NON-NLS-1$
      btnACenterLeft.getImage().setBackground(btnACenterLeft.getBackground());

      btnACenter.setToolTipText(
          Messages.getString("FontDefinitionDialog.Tooltip.AlignCenter")); // $NON-NLS-1$
      btnACenter.setImage(UIHelper.getImage("icons/obj28/alignmentcenter.gif")); // $NON-NLS-1$
      btnACenter.getImage().setBackground(btnACenter.getBackground());

      btnACenterRight.setToolTipText(
          Messages.getString("FontDefinitionDialog.Tooltip.AlignCenterRight")); // $NON-NLS-1$
      btnACenterRight.setImage(
          UIHelper.getImage("icons/obj28/alignmentcenterright.gif")); // $NON-NLS-1$
      btnACenterRight.getImage().setBackground(btnACenterRight.getBackground());

      createSeparator(cmpAlignment);

      btnABottomLeft.setToolTipText(
          Messages.getString("FontDefinitionDialog.Tooltip.AlignBottomLeft")); // $NON-NLS-1$
      btnABottomLeft.setImage(
          UIHelper.getImage("icons/obj28/alignmentbottomleft.gif")); // $NON-NLS-1$
      btnABottomLeft.getImage().setBackground(btnABottomLeft.getBackground());

      btnABottomCenter.setToolTipText(
          Messages.getString("FontDefinitionDialog.Tooltip.AlignBottomCenter")); // $NON-NLS-1$
      btnABottomCenter.setImage(
          UIHelper.getImage("icons/obj28/alignmentbottomcenter.gif")); // $NON-NLS-1$
      btnABottomCenter.getImage().setBackground(btnABottomCenter.getBackground());

      btnABottomRight.setToolTipText(
          Messages.getString("FontDefinitionDialog.Tooltip.AlignBottomRight")); // $NON-NLS-1$
      btnABottomRight.setImage(
          UIHelper.getImage("icons/obj28/alignmentbottomright.gif")); // $NON-NLS-1$
      btnABottomRight.getImage().setBackground(btnABottomRight.getBackground());
    }
  }