From c9c5ab74fb8e71b840d4c1584f437fa42d3aea3a Mon Sep 17 00:00:00 2001 From: tkellner Date: Wed, 10 Apr 2013 19:08:41 +0000 Subject: Fix window centering git-svn-id: https://joinup.ec.europa.eu/svn/pdf-over/trunk@156 174cde9d-5d70-4d2a-aa98-46368bc2aaf7 --- pdf-over-gui/src/main/java/at/asit/pdfover/gui/MainWindow.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pdf-over-gui/src/main/java/at') 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(); -- cgit v1.2.3