Example #1
0
 // global keyboard action listener, sets key back to normal when released.
 public void nativeKeyReleased(final NativeKeyEvent KBe2) {
   if (KB.containsKey((Integer) KBe2.getRawCode())) {
     SwingUtilities.invokeLater(
         new Runnable() {
           public void run() {
             if (KB.get(KBe2.getRawCode()) != null) {
               KB.get(KBe2.getRawCode() + 1000).setBackground(btC);
               repaint();
             }
           }
         });
   }
 }