shell.setLayout(new FormLayout());
shell.setText(titleText);
+ // Base composite
Composite base = new Composite(shell, SWT.NONE);
base.setLayout(new FormLayout());
FormData baseData = new FormData();
strMessage.setFont(FontResources.ABOUT_TEXT);
FormData labelData = new FormData();
- labelData.left = new FormAttachment(0, 15);
+ labelData.left = new FormAttachment(0, 10);
labelData.top = new FormAttachment(0, 6);
labelData.height = 64;
labelData.width = 64;
icon.setLayoutData(labelData);
labelData = new FormData();
- labelData.left = new FormAttachment(0, 95);
+ labelData.left = new FormAttachment(0, 90);
labelData.right = new FormAttachment(100, 0);
- labelData.top = new FormAttachment(0, 15);
+ labelData.top = new FormAttachment(0, 17);
labelData.height = 40;
strMessage.setLayoutData(labelData);
+ // Button composite
Composite buttonComp = new Composite(shell, SWT.NONE);
FormLayout compLayout = new FormLayout();
buttonComp.setLayout(compLayout);
compData.bottom = new FormAttachment(100, 0);
buttonComp.setLayoutData(compData);
+ // OK button
okButton = new DAButton(buttonComp, SWT.NONE);
okButton.addClickListener(okButtonListener);
okButton.setText(WidgetLabels.OK);
okButton.setButtonFont(FontResources.DIALOG_BUTTON_FONT);
FormData okData = new FormData();
- okData.top = new FormAttachment(0, 12);
+ okData.top = new FormAttachment(0, 11);
okData.right = new FormAttachment(100, -9);
okData.width = DesignConstants.DA_BUTTON_WIDTH;
okData.height = DesignConstants.DA_BUTTON_HEIGHT;