summaryrefslogtreecommitdiff
path: root/pdf-over-gui
diff options
context:
space:
mode:
authortkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7>2013-04-10 19:08:41 +0000
committertkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7>2013-04-10 19:08:41 +0000
commitc9c5ab74fb8e71b840d4c1584f437fa42d3aea3a (patch)
tree0ca90c1b7d749941c39003ee4aa509b4acc1d886 /pdf-over-gui
parent929ef384a174b747d864249f6798fd2f99358e29 (diff)
downloadpdf-over-c9c5ab74fb8e71b840d4c1584f437fa42d3aea3a.tar.gz
pdf-over-c9c5ab74fb8e71b840d4c1584f437fa42d3aea3a.tar.bz2
pdf-over-c9c5ab74fb8e71b840d4c1584f437fa42d3aea3a.zip
Fix window centering
git-svn-id: https://joinup.ec.europa.eu/svn/pdf-over/trunk@156 174cde9d-5d70-4d2a-aa98-46368bc2aaf7
Diffstat (limited to 'pdf-over-gui')
-rw-r--r--pdf-over-gui/src/main/java/at/asit/pdfover/gui/MainWindow.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/MainWindow.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/MainWindow.java
index be601ce2..a69d7096 100644
--- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/MainWindow.java
+++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/MainWindow.java
@@ -175,7 +175,7 @@ public class MainWindow {
this.shell = new Shell();
getShell().setSize(550, 768);
try {
- Display display = new Display();
+ Display display = Display.getCurrent();
Monitor primary = display.getPrimaryMonitor();
Rectangle bounds = primary.getBounds();
Rectangle main = this.shell.getBounds();