From 0d8f4da43d19ea8e0fb520c5c5d29caa51707251 Mon Sep 17 00:00:00 2001 From: tkellner Date: Wed, 31 Oct 2012 16:36:54 +0000 Subject: Fix window centering git-svn-id: https://svn.iaik.tugraz.at/svn/egiz/prj/current/12PDF-OVER-4.0@12742 3a0b52a2-8410-0410-bc02-ff6273a87459 --- trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/MainWindow.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'trunk') diff --git a/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/MainWindow.java b/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/MainWindow.java index be601ce2..a69d7096 100644 --- a/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/MainWindow.java +++ b/trunk/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