The moose likes Game Development and the fly likes keyboard arrow keys not working Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Game Development
Reply Bookmark "keyboard arrow keys not working" Watch "keyboard arrow keys not working" New topic
Author

keyboard arrow keys not working

rahul taiwala
Greenhorn

Joined: Feb 06, 2011
Posts: 7
fred rosenberger
lowercase baba
Bartender

Joined: Oct 02, 2003
Posts: 8428

I'm sorry, but is there a question here?

Generally, the best way to get help on our forum is to provide as much information as possible. Simply posting 300+ lines of code will cause most folks I know to simply skip right over this, as it's too much work. Not only would they have to solve your problem, they'd have to work pretty hard to figure out what your problem is.

Does this compile? do you get error messages? Can you limit the code you post to the relevant segment?


Never ascribe to malice that which can be adequately explained by stupidity.
rahul taiwala
Greenhorn

Joined: Feb 06, 2011
Posts: 7
sorry fred, from next time I will keep your words in mind.
And for this problem it is solved,my panel was not getting focus,just tried to get it using requestfocus() method and it is solved..
 
 
subject: keyboard arrow keys not working
 
Threads others viewed
Problem with my Breakout clone
Help with drawing objects on panel
How to transfere ActionListener to anothe Class
Suggestions to make code (Pong) better (from the code I have, not adding additional code)
Need help in ball breaker game
IntelliJ Java IDE