summaryrefslogtreecommitdiff
path: root/trunk/pdf-over-gui/src
diff options
context:
space:
mode:
Diffstat (limited to 'trunk/pdf-over-gui/src')
-rw-r--r--trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/PositioningComposite.java6
-rw-r--r--trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/PositioningState.java1
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;
}