Register / Login
Win a copy of
Java Mock Exams (software)
this week in the
Programmer Certification (OCPJP)
this forum made possible by our volunteer staff, including ...
Stephan van Hulst
Problem with KeyListener
posted 10 years ago
I have an
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?
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
Boost this thread!
Tab Key and KeyListeners
EnterKey to switch panels
slowing down movement in an applet.... doesn't have anything to do with the applet.