Java how does Key Event Handling Mechanism(KeyListeners notified) work ?
- by Carbonizer
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 ?