Tab key not processed?

I have a JFrame extending my class, and have enabled:
enableEvents(AWTEvent.KEY_EVENT_MASK | AWTEvent.MOUSE_EVENT_MASK);

All my key pressings go into this processKeyEvent method, EXCEPT when I press the VK_TAB key.

Any ideas?

protected void processKeyEvent(KeyEvent e) {

if(e.getID() == KeyEvent.KEY_PRESSED && e.getKeyCode() == KeyEvent.VK_TAB) {
  // never arrives here!
}

}

My guess is that: when you press “tab”, the jframe which the keylistner is added lost its focus.

Does this sound about right?

http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4650902

Yup, exactly!

The solution:
setFocusTraversalKeysEnabled(false);