
MouseMotionAdapter object which is registered to receive Gets a MouseEvent containing the mouse event.Ī MouseEvent object is also passed to every MouseListener interface.) Each such listener object The "interesting" mouse events using the component's Or MouseAdapter object which is registered to receive

( AWTEvent.MOUSE_EVENT_MASK or AWTEvent.MOUSE_MOTION_EVENT_MASK). ( MouseListener or MouseMotionListener), or by invokingĬomponent.enableEvents(long) with the appropriate mask parameter A mouse event type is enabled by adding theĪppropriate mouse-based EventListener to the component

If the mouse cursor is over the unobscured part of the component's boundsįor lightweight components, such as Swing's components, mouse eventsĪre only dispatched to the component if the mouse event type has beenĮnabled on the component. An event which indicates that a mouse action occurred in a component.Ī mouse action is considered to occur in a particular component if and only
