This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Game Development and the fly likes keyboard arrow keys not working Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Game Development
Bookmark "keyboard arrow keys not working" Watch "keyboard arrow keys not working" New topic

keyboard arrow keys not working

rahul taiwala

Joined: Feb 06, 2011
Posts: 12
fred rosenberger
lowercase baba

Joined: Oct 02, 2003
Posts: 11150

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?

There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
rahul taiwala

Joined: Feb 06, 2011
Posts: 12
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..
Consider Paul's rocket mass heater.
subject: keyboard arrow keys not working
Similar Threads
Need help in ball breaker game
Suggestions to make code (Pong) better (from the code I have, not adding additional code)
Help with drawing objects on panel
How to transfere ActionListener to anothe Class
Problem with my Breakout clone