- All Implemented Interfaces:
- java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.awt.event.MouseWheelListener, java.util.EventListener
public class DragInitiatorListener
extends java.awt.event.MouseAdapter
implements java.awt.event.MouseMotionListener
This MouseListener and MouseMotionListener listens to a JComponent, and initiates an exportAsDrag on its
TransferHandler when a drag exceeds 5 pixels of distance in any direction.
To use, call DragInitiatorListener.install(JComponent). Note that this installs a shared lisener for all components.