Here is the answer,
Source: A source is an object that generates an event.this occurs when the internal state of that object changes in some way.
Listener: A listener is an object that is notified when an event occurs.It has two major requirements,
First, it must have been registered with one or more sources to receive notifications about specific types of events.
Second, it must implement methods to receive and process these notifications.
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.