• Post Reply Bookmark Topic Watch Topic
  • New Topic

KeyAdapter Problem, With Source Code  RSS feed

 
Josh Rehman
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
OK, here is the same problem but with a simple example to demonstrate the problem. If you run this program, you will find that ONLY "FrameListener: keyPressed" is displayed. "PanelListener: keyPressed" is never displayed, but I would like it to be.

Thanks in advance for any help you can give me!
 
Josh Rehman
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ah yes, note that the call to "super.keyPressed(KeyEvent evt)" is not necessary. I just forgot to remove it.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!