Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem with KeyListener

 
James Hodgkiss
Ranch Hand
Posts: 401
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have an applet which, when started, opens a new Frame (called mainFrame).

I have created a KeyListener, and when I set it as the applet key listener, it works fine, but when I add the same KeyListener as mainFrame's key listener it isn't notified of any key events at all.

Maybe I'm missing something really simple - can anyone advise?

Thanks,
James
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic