Hello
I have JTextField which has KeyListener associated.
I can't understand why the TAB key is not captured with this KeyListener.
Here is my code.
I have already tried change toCode:public void keyPressed(KeyEvent key) {
if(key.getKeyCode() == KeyEvent.VK_TAB)
System.out.println("TAB!!!!!!!!!");
}
public void keyTyped(KeyEvent key) {
if(key.getKeyCode() == KeyEvent.VK_TAB)
System.out.println("TAB!!!!!!!!!");
}
public void keyReleased(KeyEvent key) {
if(key.getKeyCode() == KeyEvent.VK_TAB)
System.out.println("TAB!!!!!!!!!");
}
<MyJTextField Component>.setFocusTraversalKeysEnabled(true);
<MyJTextField Component>.setFocusTraversalKeysEnabled(false);
without success, and the strange think is when I press CTRL+TAB, the TAB Key is capured.
Thank you!
Any help will be appreciated.

