/*
  * (non-Javadoc)
  *
  * @see org.eclipse.jface.wizard.WizardDialog#createButtonsForButtonBar(org.eclipse.swt.widgets.Composite)
  */
 @Override
 protected void createButtonsForButtonBar(Composite parent) {
   super.createButtonsForButtonBar(parent);
   Button button = getButton(IDialogConstants.FINISH_ID);
   if (button != null) {
     ((GridData) button.getParent().getLayoutData()).horizontalAlignment = SWT.CENTER;
     button.setText(Messages.getString("LicenseWizard.accept")); // $NON-NLS-1$
     GridData data = new GridData(250, -1);
     button.setLayoutData(data);
   }
   Button buttonCancle = getButton(IDialogConstants.CANCEL_ID);
   if (buttonCancle != null) {
     buttonCancle.setText(Messages.getString("LicenseWizard.btnCancle")); // $NON-NLS-1$
     GridData data = new GridData(-1, -1);
     buttonCancle.setLayoutData(data);
   }
 }
  @Override
  protected Control createDialogArea(Composite parent) {
    // set the whole page white
    parent.setBackground(new Color(null, new RGB(255, 255, 255)));
    parent.setBackgroundMode(SWT.INHERIT_FORCE);

    Composite container = new Composite(parent, SWT.NONE);
    GridLayout layout = new GridLayout();
    container.setLayout(layout);

    Composite top = new Composite(container, SWT.NONE);
    top.setLayout(new GridLayout());
    top.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_CENTER));
    Label label = new Label(top, SWT.NONE);
    label.setText(REGISTER_TITLE);
    label.setFont(TITLE_FONT);
    label.setForeground(YELLOW_GREEN_COLOR);

    Composite centerComposite = new Composite(container, SWT.NONE);
    centerComposite.setLayout(new GridLayout()); // top.setLayoutData(new
    // GridData(GridData.HORIZONTAL_ALIGN_CENTER));
    centerComposite.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_CENTER));

    // createSpacer(centerComposite, SWT.NONE);

    IBrandingService brandingService =
        (IBrandingService) GlobalServiceRegister.getDefault().getService(IBrandingService.class);
    String thanks1 =
        Messages.getString("RegisterWizardPage.legalthanks1", brandingService.getCorporationName());
    String thanks2 =
        Messages.getString("RegisterWizardPage.legalthanks2", brandingService.getCorporationName());
    Font font2 = new Font(null, "Arial", 10, SWT.BOLD);

    Composite c1 = new Composite(centerComposite, SWT.NONE);
    c1.setLayout(new GridLayout());
    c1.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_CENTER));
    Label label1 = new Label(c1, SWT.NONE);
    label1.setText(thanks1);
    label1.setFont(font2);

    Composite c2 = new Composite(centerComposite, SWT.NONE);
    c2.setLayout(new GridLayout());
    c2.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_CENTER));
    Label label2 = new Label(c2, SWT.NONE);
    label2.setText(thanks2);
    label2.setFont(font2);

    // createSpacer(centerComposite, SWT.NONE);
    createSpacer(centerComposite, SWT.NONE);

    String string =
        Messages.getString("RegisterWizardPage.legalconfirm", brandingService.getCorporationName());
    Composite c3 = new Composite(centerComposite, SWT.NONE);
    c3.setLayout(new GridLayout());
    c3.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_CENTER));
    Label label3 = new Label(c3, SWT.NONE);
    label3.setText(string);
    // label3.setFont(font2);
    // createLegalInfos(centerComposite, 1, string2);

    createSpacer(centerComposite, SWT.NONE);

    Composite bottomComposite = new Composite(container, SWT.NONE);
    bottomComposite.setLayout(new GridLayout(3, true));

    bottomComposite.setLayoutData(new GridData());

    new Label(bottomComposite, SWT.NONE);
    // label3.setLayoutData(new GridData());

    new ImageCanvas(bottomComposite, ImageProvider.getImageDesc(ERepositoryImages.REGISTER_ICO));

    return container;
  }