I had problems with VK_ALT awhile back too and went to the boolean e.isAltDown() and it worked fine. - Gary
Patrik Müller wrote:
HiI would like to have a key Listener like that:Only if I press the Key "ALT" together with the Key "Numlock 7" that it is possible to go into this "if" part but it does not work. Why? if (e.getKeyCode()==KeyEvent.VK_NUMPAD7 && e.getKeyCode()==KeyEvent.VK_ALT ) { .... }Patrik
E-mail mailto: [EMAIL PROTECTED]
