Registration

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 Component class or a class derived from it. It includes methods of the form addEventTypeListener and removeEventTypeListener, where EventType is MouseMotion or some other event type. Thus, addActionListener and addMouseMotionListener are examples.