I began to learn how to intercept events using MouseListener and one question arose in the process. Using the abstract class MouseAdapter in order not to implement all the MouseListner methods myself, I want to understand where the MouseEvent object is transferred from to the overridden methods of this class?

    1 answer 1

    It is transmitted from the code to which you transmit the adapter.

    For example, you say the panel: "On you, my adapter on a mouse click, except for the call, also pass a MouseEvent object."
    The panel is: "OK".
    An event occurs, the panel knows what to call your method with the argument MouseEvent and calls.