diff options
author | tkellner <tkellner@3a0b52a2-8410-0410-bc02-ff6273a87459> | 2012-10-31 16:36:47 +0000 |
---|---|---|
committer | tkellner <tkellner@3a0b52a2-8410-0410-bc02-ff6273a87459> | 2012-10-31 16:36:47 +0000 |
commit | d3c443f46df009cc3afeb1f89015cdca23754e8c (patch) | |
tree | 757f63541928a1524b657f33123b9b31f0ecc1c5 /trunk/pdf-over-gui/src/main | |
parent | a3e61373e008ddceb8428263b0b95984aed926e0 (diff) | |
download | pdf-over-d3c443f46df009cc3afeb1f89015cdca23754e8c.tar.gz pdf-over-d3c443f46df009cc3afeb1f89015cdca23754e8c.tar.bz2 pdf-over-d3c443f46df009cc3afeb1f89015cdca23754e8c.zip |
Windows focus issues: next try
git-svn-id: https://svn.iaik.tugraz.at/svn/egiz/prj/current/12PDF-OVER-4.0@12725 3a0b52a2-8410-0410-bc02-ff6273a87459
Diffstat (limited to 'trunk/pdf-over-gui/src/main')
2 files changed, 4 insertions, 3 deletions
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 9d96fb94..acb2eed5 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 @@ -117,10 +117,11 @@ public class PositioningComposite extends StateComposite { /** * Request focus (to enable keyboard input) */ - public void requestFocus() + private void requestFocus() { - this.setFocus(); this.frame.requestFocus(); + boolean b = setFocus(); + log.debug("Requesting focus: " + b); } /** @@ -244,6 +245,7 @@ public class PositioningComposite extends StateComposite { @Override public void doLayout() { this.layout(true, true); + requestFocus(); } /** diff --git a/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/PositioningState.java b/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/PositioningState.java index e31990ea..9bf875fb 100644 --- a/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/PositioningState.java +++ b/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/PositioningState.java @@ -67,7 +67,6 @@ public class PositioningState extends State { param.getPlaceholderDimension().getWidth(), param.getPlaceholderDimension().getHeight(), this.stateMachine.getConfigProvider().getPlaceholderTransparency()); - this.positionComposite.requestFocus(); return this.positionComposite; } |