diff options
author | tkellner <tkellner@3a0b52a2-8410-0410-bc02-ff6273a87459> | 2012-10-31 16:36:44 +0000 |
---|---|---|
committer | tkellner <tkellner@3a0b52a2-8410-0410-bc02-ff6273a87459> | 2012-10-31 16:36:44 +0000 |
commit | 20db2e230e1247e2d9351442db3ff7e03fa669f0 (patch) | |
tree | beddc5c7ad50cfab0f82526e169a6927f688d453 | |
parent | 2ab0add6e4ea56ab12e69a48b758cd0861625185 (diff) | |
download | pdf-over-20db2e230e1247e2d9351442db3ff7e03fa669f0.tar.gz pdf-over-20db2e230e1247e2d9351442db3ff7e03fa669f0.tar.bz2 pdf-over-20db2e230e1247e2d9351442db3ff7e03fa669f0.zip |
Windows focus issues again
git-svn-id: https://svn.iaik.tugraz.at/svn/egiz/prj/current/12PDF-OVER-4.0@12715 3a0b52a2-8410-0410-bc02-ff6273a87459
-rw-r--r-- | trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/PositioningComposite.java | 35 |
1 files changed, 18 insertions, 17 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 f841ae6f..33506f00 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 @@ -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) { |