Java how does Key Event Handling Mechanism(KeyListeners notified) work ?

Posted by Carbonizer on Stack Overflow See other posts from Stack Overflow or by Carbonizer
Published on 2011-01-15T05:37:09Z Indexed on 2011/01/15 5:53 UTC
Read the original article Hit count: 144

Filed under:
|

How does application/JVM know which classes if implemented key handling interfaces ? Does it use java Reflections or does it check all the classes for methods ?

How can a application or executing JVM understanding to deliver the user event or call the specific methods on a class that implemented the keylistener interface. Does it look at all the classes if those methods are implemented or how does it know which classes implmented keylistener interface ?

If you dont implement the keylistener Interface for a class but still implmentation all its methods. Do the class still process the user event occurred ?

© Stack Overflow or respective owner

Related posts about java

Related posts about blackberry