Thanks for your reply, but I really don’t understand what
you are trying to say.
First of all - please reply in the topic. New PMs are easily overseen and others might have answered that question in the meantime.
What I ment… (#1)your code can’t be compiled straight away, because there are random characters at the beginning of some lines and no one would fix all of those.
(#2) Well, just that. Try adding the KeyListener somewere else and/or try using requestFocus(). You can request the focus for any component (eg a JPanel, a Canvas, JButton etc). For example: myCanvas.requestFocus();
(#3a) The headline is just pointless. It should indicate what the topic is about (this way you’ll attract more people who know what to do in that case). Eg a good headline would have been “KeyListener problems”.
(#3b) We have alot of different sub forums here. If you want to get help as fast as possible you should pick the right one. In this case the Newless Clubies board, because it’s a rather basic question wich doesn’t has anything to do with 2d/3d/sound/networking etc.