What is the relationship between an event-listener interface and an event-adapter class? When you declare to implement an event listener, then you should write the definitions of all the methods that have been declared in the interface. This causes inconvenience to the programmers. They need to implement the methods that would never be used. One way to do away with this inconvenience is to use adapter classes. An event adapter class has empty implementations by default.
|