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 Beginning Java and the fly likes KeyListener Refreshing problem 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 » Beginning Java
Bookmark "KeyListener Refreshing problem" Watch "KeyListener Refreshing problem" New topic
Author

KeyListener Refreshing problem

Steven Joost
Greenhorn

Joined: Sep 29, 2012
Posts: 28
Hello,

In my latest project, I've a problem with a KeyListener.

How can I prevent, that the player figure does not cross the crops, without disabling the whole KeyListener?

Because this is a connection of many classes I uploaded the complete .java - list

At: http://www.mediafire.com/?ifdo3xe7euwh2kr

Don't worry, it's no virus

Starting class is : Display.java
Joanne Neal
Rancher

Joined: Aug 05, 2005
Posts: 3419
    
  12
Steven Joost wrote:Don't worry, it's no virus

That's okay then. As long as a complete stranger has assured me that it's okay to click a link, I'm happy to click it.

Seriously though, you will get a lot more help if you create a SSCCE that demonstrates your problem and post the code for that and a clear explanation of what is happening and what should be happening.

Joanne
Steven Joost
Greenhorn

Joined: Sep 29, 2012
Posts: 28
You mean posting 18*200 lines?
And how should I print the image here?
Winston Gutkowski
Bartender

Joined: Mar 17, 2011
Posts: 7501
    
  18

Steven Joost wrote:You mean posting 18*200 lines?

No, she means an SSCCE. I suggest you read the link.

Winston

Isn't it funny how there's always time and money enough to do it WRONG?
Articles by Winston can be found here
Steven Joost
Greenhorn

Joined: Sep 29, 2012
Posts: 28
Too much unknown words, need a german translation , has one of you downloaded, and checked the file?
Winston Gutkowski
Bartender

Joined: Mar 17, 2011
Posts: 7501
    
  18

Steven Joost wrote:Too much unknown words, need a german translation , has one of you downloaded, and checked the file?

Sorry Steven. This is your problem, not ours; and one of the rules here is that you ShowSomeEffort.

Winston
 
jQuery in Action, 2nd edition
 
subject: KeyListener Refreshing problem
 
Similar Threads
KeyListener of JComboBox
Problem with KeyEvent.consume() method
JTable with keyboard delete
[JList] Removing key actions
KeyListener