From 7f3b44e74646e24f78e973c37a71c64643088b0c Mon Sep 17 00:00:00 2001 From: tkellner Date: Wed, 31 Oct 2012 16:36:41 +0000 Subject: Resolve windows keyboard focus issues git-svn-id: https://svn.iaik.tugraz.at/svn/egiz/prj/current/12PDF-OVER-4.0@12710 3a0b52a2-8410-0410-bc02-ff6273a87459 --- .../java/at/asit/pdfover/gui/composites/PositioningComposite.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'trunk/pdf-over-gui/src/main/java/at') diff --git a/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/PositioningComposite.java b/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/PositioningComposite.java index d827c811..86ccbe9b 100644 --- a/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/PositioningComposite.java +++ b/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/PositioningComposite.java @@ -92,6 +92,8 @@ public class PositioningComposite extends StateComposite { this.numPages = this.pdf.getNumPages(); this.scrollbar.setValues(1, 1, this.numPages + 1, 1, 1, 1); showPage(this.numPages); + this.setFocus(); + this.frame.requestFocus(); } /** @@ -122,6 +124,8 @@ public class PositioningComposite extends StateComposite { this.addKeyListener(this.keyListener); this.frame.addMouseWheelListener(this.mouseListener); this.scrollbar.addSelectionListener(this.selectionListener); + this.setFocus(); + this.frame.requestFocus(); } private KeyListener keyListener = new KeyAdapter() { -- cgit v1.2.3