Objects that implement the MouseListener interface can receive non-motion oriented MouseEvent objects. Listeners must first register themselves with objects that produce events. When events occur, they are then automatically propagated to all registered listeners.
public abstract interface java.awt.event.MouseListener extends java.util.EventListener { // Instance Methods public abstract void mouseClicked (MouseEvent e); public abstract void mouseEntered (MouseEvent e); public abstract void mouseExited (MouseEvent e); public abstract void mousePressed (MouseEvent e); public abstract void mouseReleased (MouseEvent e); }
The key event that occurred.
Notifies the MouseListener that the mouse button was clicked (pressed and released).
The key event that occurred.
Notifies the MouseListener that the mouse cursor has been moved into a component's coordinate space.
The key event that occurred.
Notifies the MouseListener that the mouse cursor has been moved out of a component's coordinate space.
The key event that occurred.
Notifies the MouseListener that the mouse button was pressed.
The key event that occurred.
Notifies the MouseListener that the mouse button was released.
EventListener, MouseAdapter, MouseEvent