For a long time I don't use any Java AWT/Swing application, because I lost
keyboard focus very often (after closing some dialog windows). I also created a
bug for it: https://bugs.launchpad.net/ubuntu/+bug/174281. Now I observed that
this problem is maybe a SCIM bug:
Thread about keyboard lock in swing apps on linux on java.net:
http://forums.java.net/jive/thread.jspa?messageID=189281
Bug on Sun:
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6506617
Bug on Sun where SCIM is mentioned:
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6568693