diff options
author | tkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7> | 2013-04-10 18:54:34 +0000 |
---|---|---|
committer | tkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7> | 2013-04-10 18:54:34 +0000 |
commit | 6d3b9d99b0e708d2516caf0f098c58c8a9585114 (patch) | |
tree | f27b4c144e19021b04b68a04b01abd92aefbee76 /pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/ErrorComposite.java | |
parent | 7b9387fd576cea39d5a430312536d3723fdfeeed (diff) | |
download | mocca-6d3b9d99b0e708d2516caf0f098c58c8a9585114.tar.gz mocca-6d3b9d99b0e708d2516caf0f098c58c8a9585114.tar.bz2 mocca-6d3b9d99b0e708d2516caf0f098c58c8a9585114.zip |
Mobile BKU first working (currently set to work with test mobile BKU from A-Trust
git-svn-id: https://joinup.ec.europa.eu/svn/pdf-over/trunk@31 174cde9d-5d70-4d2a-aa98-46368bc2aaf7
Diffstat (limited to 'pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/ErrorComposite.java')
-rw-r--r-- | pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/ErrorComposite.java | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/ErrorComposite.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/ErrorComposite.java index 38b0f877..93486894 100644 --- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/ErrorComposite.java +++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/ErrorComposite.java @@ -65,6 +65,7 @@ public class ErrorComposite extends StateComposite { } private Exception exception; + private Label lbl_message; /** @@ -73,6 +74,7 @@ public class ErrorComposite extends StateComposite { */ public void setException(Exception exception) { this.exception = exception; + this.lbl_message.setText(this.exception.getMessage()); } /** @@ -86,14 +88,14 @@ public class ErrorComposite extends StateComposite { this.setLayout(new FormLayout()); - Label lbl_message = new Label(this, SWT.NATIVE | SWT.RESIZE); + this.lbl_message = new Label(this, SWT.WRAP | SWT.NATIVE | SWT.RESIZE); FormData fd_lbl_message = new FormData(); fd_lbl_message.left = new FormAttachment(10, 0); fd_lbl_message.right = new FormAttachment(90, 0); - fd_lbl_message.top = new FormAttachment(40, 0); - fd_lbl_message.bottom = new FormAttachment(50, 0); - lbl_message.setLayoutData(fd_lbl_message); - lbl_message.setText(this.exception.getMessage()); + fd_lbl_message.top = new FormAttachment(10, 0); + fd_lbl_message.bottom = new FormAttachment(80, 0); + this.lbl_message.setLayoutData(fd_lbl_message); + //lbl_message.setText(this.exception.getMessage()); Button btn_ok = new Button(this, SWT.NATIVE | SWT.RESIZE); btn_ok.setText("OK"); @@ -101,8 +103,8 @@ public class ErrorComposite extends StateComposite { FormData fd_btn_ok = new FormData(); fd_btn_ok.left = new FormAttachment(45, 0); fd_btn_ok.right = new FormAttachment(55, 0); - fd_btn_ok.top = new FormAttachment(70, 0); - fd_btn_ok.bottom = new FormAttachment(75, 0); + fd_btn_ok.top = new FormAttachment(85, 0); + fd_btn_ok.bottom = new FormAttachment(95, 0); btn_ok.setLayoutData(fd_btn_ok); btn_ok.addSelectionListener(new OkSelectionListener()); } |