From f56ed925bb2b4caea3f83407035ea47d4c7c92ed Mon Sep 17 00:00:00 2001 From: tkellner Date: Wed, 31 Oct 2012 16:36:48 +0000 Subject: Attach TabFolder to save/cancel buttons git-svn-id: https://svn.iaik.tugraz.at/svn/egiz/prj/current/12PDF-OVER-4.0@12728 3a0b52a2-8410-0410-bc02-ff6273a87459 --- .../gui/composites/ConfigurationComposite.java | 30 +++++++++++----------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'trunk/pdf-over-gui/src/main/java/at/asit/pdfover') diff --git a/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/ConfigurationComposite.java b/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/ConfigurationComposite.java index 2086ec40..d14c5242 100644 --- a/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/ConfigurationComposite.java +++ b/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/ConfigurationComposite.java @@ -244,21 +244,10 @@ public class ConfigurationComposite extends StateComposite { advancedCompositeScr.setMinSize( this.advancedConfigComposite.computeSize(SWT.DEFAULT, SWT.DEFAULT)); - FormData fd_composite = new FormData(); - fd_composite.top = new FormAttachment(0, 5); - fd_composite.bottom = new FormAttachment(90, -5); - fd_composite.left = new FormAttachment(0, 5); - fd_composite.right = new FormAttachment(100, -5); - this.containerComposite.setLayoutData(fd_composite); - this.containerComposite.setLayout(this.compositeStack); - this.compositeStack.topControl = tabFolder; - - this.doLayout(); - Button btnSpeichern = new Button(this, SWT.NONE); FormData fd_btnSpeichern = new FormData(); - fd_btnSpeichern.right = new FormAttachment(100, -10); - fd_btnSpeichern.bottom = new FormAttachment(100, -5); + fd_btnSpeichern.right = new FormAttachment(100, -5); + fd_btnSpeichern.bottom = new FormAttachment(100); btnSpeichern.setLayoutData(fd_btnSpeichern); btnSpeichern.addSelectionListener(new SelectionAdapter() { @Override @@ -278,7 +267,7 @@ public class ConfigurationComposite extends StateComposite { Button btnAbbrechen = new Button(this, SWT.NONE); FormData fd_btnAbrechen = new FormData(); fd_btnAbrechen.right = new FormAttachment(btnSpeichern, -10); - fd_btnAbrechen.bottom = new FormAttachment(100, -5); + fd_btnAbrechen.bottom = new FormAttachment(btnSpeichern, 0, SWT.BOTTOM); btnAbbrechen.setLayoutData(fd_btnAbrechen); btnAbbrechen.setText(Messages.getString("common.Cancel")); //$NON-NLS-1$ btnAbbrechen.addSelectionListener(new SelectionAdapter() { @@ -292,7 +281,18 @@ public class ConfigurationComposite extends StateComposite { FontData[] fD_btnAbbrechen = btnAbbrechen.getFont().getFontData(); fD_btnAbbrechen[0].setHeight(TEXT_SIZE_BUTTON); btnAbbrechen.setFont(new Font(Display.getCurrent(), fD_btnAbbrechen[0])); - } + + FormData fd_composite = new FormData(); + fd_composite.top = new FormAttachment(0, 5); + fd_composite.bottom = new FormAttachment(btnSpeichern, -10); + fd_composite.left = new FormAttachment(0, 5); + fd_composite.right = new FormAttachment(100, -5); + this.containerComposite.setLayoutData(fd_composite); + this.containerComposite.setLayout(this.compositeStack); + this.compositeStack.topControl = tabFolder; + + this.doLayout(); +} boolean storeConfiguration() { -- cgit v1.2.3