[sikuli] 234/385: for debugging keyboard setup
Gilles Filippini
pini at moszumanska.debian.org
Sun Jun 29 19:26:18 UTC 2014
This is an automated email from the git hooks/post-receive script.
pini pushed a commit to tag upstream/1.1.0_beta1
in repository sikuli.
commit 1e4255d99fb715e4eb2769bd40cfec520ebf2cc3
Author: Raimund Hocke <rmhdevelop at me.com>
Date: Wed Feb 19 22:24:10 2014 +0100
for debugging keyboard setup
---
API/src/main/java/org/sikuli/script/Key.java | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/API/src/main/java/org/sikuli/script/Key.java b/API/src/main/java/org/sikuli/script/Key.java
index 13d9aba..c911296 100755
--- a/API/src/main/java/org/sikuli/script/Key.java
+++ b/API/src/main/java/org/sikuli/script/Key.java
@@ -10,6 +10,7 @@ import java.awt.BorderLayout;
import java.awt.Container;
import java.awt.Toolkit;
import java.awt.event.KeyEvent;
+import java.awt.image.BufferedImage;
import java.util.HashMap;
import java.util.Map;
import javax.swing.ImageIcon;
@@ -922,6 +923,9 @@ public class Key {
@Override
public void run() {
+ BufferedImage img = Image.create("SikuliLogo").get();
+ Debug.log(3, "KBSetup: %s", img);
+ Image.dump();
kbSetup = new JFrame("Localized Keyboard Setup");
Container mpwinCP = kbSetup.getContentPane();
mpwinCP.setLayout(new BorderLayout());
@@ -930,7 +934,7 @@ public class Key {
kbSetup.pack();
kbSetup.setAlwaysOnTop(true);
kbSetup.setDefaultCloseOperation(DISPOSE_ON_CLOSE);
- win.setLogo(new ImageIcon(Image.create("SikuliLogo").get()));
+ win.setLogo(new ImageIcon(img));
kbSetup.setVisible(true);
}
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/sikuli.git
More information about the pkg-java-commits
mailing list