This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum 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
Register / Login


JavaRanch » Java Forums » Java » Beginning Java
Reply 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: 3011
    
    9
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: 4905
    
    7

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?
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: 4905
    
    7

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
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: KeyListener Refreshing problem
 
Similar Threads
KeyListener
JTable with keyboard delete
KeyListener of JComboBox
[JList] Removing key actions
Problem with KeyEvent.consume() method