Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

catching keyboard events

 
paul wheaton
Trailboss
Pie
Posts: 21346
Firefox Browser IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've written my own Swing component on top of JComponent. Works great. Especially with the mouse.
I'm trying to put some keyboard stuff in and having a helluva time. Apparently, the AWT stuff won't work. I found something about overriding processComponentKeyEvent(), but that didn't work either. Now I'm working on registerKeyboardAction() ...
Has anyone already been down this path and can part with some advice?
 
paul wheaton
Trailboss
Pie
Posts: 21346
Firefox Browser IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Okay - I got the registerKeyboardAction() thing working. But now I can't make it work with the tab key. Wuzzup?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic