• Advertisement
Sign in to follow this  

[java] Problem with Keylistener/binding/etc.

This topic is 3476 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I'm trying to make a program that will execute a series of commands from the single press of a key, specifically NUMPAD0, and am getting confused on how to let it know when the key is pressed. I have it set up to do everything else, if e.getSource..., I just don't know where to add a keylisetener normally I would use JBinit but since this isn't going to be limited to a single window I don't know what to do. Any advice would be helpful.

Share this post


Link to post
Share on other sites
Advertisement
I think that maybe the reason no one has answered you yet is that it is kind of hard to understand what you are doing.

"and am getting confused on how to let it know when the key is pressed"
What is it?

"normally I would use JBinit"
I do not know what JBinit is. That is not java. Please post some code with a very simple example, and it will be easier to help.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement