• 0

[JAVA] Executing an event while key press?


Question

Does any one know how to execute a event while a key is being pressed? for example pressing the Up key will sum a variable until the key is released, I've search google but no luck :no:

Thanks in advance

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

I think that's one thing i hate about java, every single event you wire up seems to be a seperate class of it's own which implements the ActionListener, and when come time to compile you have a crap load of .class generated files for each event.

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.