• Post Reply Bookmark Topic Watch Topic
  • New Topic

NX: How to register a key event to a frame

 
Flavio Nobili
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello to all,
I would like to capture key events in a frame. First I've tried to use the registerKeyboardAction method, like this:

But it didn't work, and I found that this method is obsolet. So I tried to use ActionMap and InputMap:

But it still doesn't work. How can I do that?
Regards,
Fl�vio.
 
George Marinkovich
Ranch Hand
Posts: 619
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Fl�vio,
If you're not getting your question answered here you might want to delete this topic and post the same question in the Swing / JFC / AWT forum.
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!