A mouselistener reacts on certain type of events and call a eventfunction.
creates a new MouseListener. The eventFilter is optional and can be created by creating the product of the specific events of interest (i.e. MouseEvent.MOUSE_MOVED*MouseEvent.MOUSE_CLICKED). If eventFilter is not given, the listenerfunction will be called on every mouseevent.
The callback function's signature is function listener (mouselistener, mouseevent)