(Im not sure if I've placed the post the rigth place, sorry if it's wrong)
Campbell Ritchie
Sheriff
Joined: Oct 13, 2005
Posts: 32675
4
posted
0
Please supply more details, as requested in this FAQ.
I think this thread would sit better on the Swing forum, so I shall move it.
Michael Dunn
Ranch Hand
Joined: Jun 09, 2003
Posts: 4632
posted
0
there's a whole bunch of reasons why keylistener will not 'receive' keyEvents when added to the frame.
possible what's in AndenPanel or LomPanel consumes them, but that's just a guess.
best solution is to use keyBindings instead of keyListener.
Hans vogn
Ranch Hand
Joined: Feb 04, 2009
Posts: 46
posted
0
Can you tell me where i can learn how to use keybindings?
It's extremely likely that one of the first three links Google returns for the keywords "java keybinding tutorial" will be what you need.
Hans vogn
Ranch Hand
Joined: Feb 04, 2009
Posts: 46
posted
0
I've now looked around for some time, but I can't really find anything that I can understand.
I guesse I'll not be very popular for asking this question, but can anyone write a example for using keybindings please?
thanks (and maybe sorry) in advance
pete stein
Bartender
Joined: Feb 23, 2007
Posts: 1561
posted
0
Hans vogn wrote:I've now looked around for some time, but I can't really find anything that I can understand.
I guesse I'll not be very popular for asking this question, but can anyone write a example for using keybindings please?
thanks (and maybe sorry) in advance
I doubt that any of our examples will be better written then that in the Sun Swing tutorials. You'll probably be better off going through this tutorial and the sample code (perhaps again), and then posting any specific questions about the tutorial and / or the code if you still don't understand it.