summaryrefslogtreecommitdiff
path: root/pdf-over-gui/src/main
diff options
context:
space:
mode:
authortkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7>2013-04-10 19:06:06 +0000
committertkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7>2013-04-10 19:06:06 +0000
commit3aa8217f8920559df6a1d77814746ea501007442 (patch)
tree200fb099931abc1708aa4de7f4e1d1dce640414b /pdf-over-gui/src/main
parent0b716028cb197d4bebfbb88b317b3a0600f82d6a (diff)
downloadpdf-over-3aa8217f8920559df6a1d77814746ea501007442.tar.gz
pdf-over-3aa8217f8920559df6a1d77814746ea501007442.tar.bz2
pdf-over-3aa8217f8920559df6a1d77814746ea501007442.zip
Windows focus issues again
git-svn-id: https://joinup.ec.europa.eu/svn/pdf-over/trunk@129 174cde9d-5d70-4d2a-aa98-46368bc2aaf7
Diffstat (limited to 'pdf-over-gui/src/main')
-rw-r--r--pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/PositioningComposite.java35
1 files changed, 18 insertions, 17 deletions
diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/PositioningComposite.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/PositioningComposite.java
index f841ae6f..33506f00 100644
--- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/PositioningComposite.java
+++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/PositioningComposite.java
@@ -70,6 +70,24 @@ public class PositioningComposite extends StateComposite {
ScrollBar scrollbar = null;
/**
+ * Create the composite.
+ * @param parent
+ * @param style
+ * @param state
+ */
+ public PositioningComposite(Composite parent, int style, State state) {
+ super(parent, style | SWT.EMBEDDED | SWT.V_SCROLL, state);
+ //this.setLayout(null);
+ this.setBounds(0, 0, 10, 10);
+ this.scrollbar = this.getVerticalBar();
+ this.frame = SWT_AWT.new_Frame(this);
+ this.addKeyListener(this.keyListener);
+ this.frame.addMouseWheelListener(this.mouseListener);
+ this.scrollbar.addSelectionListener(this.selectionListener);
+ requestFocus();
+ }
+
+ /**
* Set the PDF Document to display
* @param document document to display
* @throws IOException I/O Error
@@ -117,23 +135,6 @@ public class PositioningComposite extends StateComposite {
this.viewer.setSignaturePlaceholder(placeholder, width, height, transparency);
}
- /**
- * Create the composite.
- * @param parent
- * @param style
- * @param state
- */
- public PositioningComposite(Composite parent, int style, State state) {
- super(parent, style | SWT.EMBEDDED | SWT.V_SCROLL, state);
- //this.setLayout(null);
- this.setBounds(0, 0, 10, 10);
- this.scrollbar = this.getVerticalBar();
- this.frame = SWT_AWT.new_Frame(this);
- this.addKeyListener(this.keyListener);
- this.frame.addMouseWheelListener(this.mouseListener);
- this.scrollbar.addSelectionListener(this.selectionListener);
- }
-
private KeyListener keyListener = new KeyAdapter() {
@Override
public void keyPressed(KeyEvent e) {