Registration is the process whereby one object can ask another object (or itself) to notify it when it receives a particular kind of event. It can also ask it to stop notifying it.
Registering and unregistering is done through the
Componentclass or a class derived from it. It includes methods of the formaddEventTypeListenerandremoveEventTypeListener, where EventType isMouseMotionor some other event type. Thus,addActionListenerandaddMouseMotionListenerare examples.