- Enclosing class:
TreeMouseListener is responsible for updating the selection based on mouse events.
Constructor SummaryConstructorDescriptionConstructs a
Method SummaryModifier and TypeMethodDescription
voidInvoked when a mouse button is pressed on a component and then dragged.
voidInvoked when the mouse button has been moved on a component (with no buttons no down).
voidInvoked when a mouse button has been pressed on a component.
Methods declared in class java.awt.event.MouseAdapter
mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseReleased, mouseWheelMoved
MouseHandlerpublic MouseHandler()Constructs a
mousePressedpublic void mousePressed
(MouseEvent e)Invoked when a mouse button has been pressed on a component.
mouseDraggedpublic void mouseDragged
(MouseEvent e)Description copied from class:
MouseAdapterInvoked when a mouse button is pressed on a component and then dragged.
MOUSE_DRAGGEDevents will continue to be delivered to the component where the drag originated until the mouse button is released (regardless of whether the mouse position is within the bounds of the component).
Due to platform-dependent Drag&Drop implementations,
MOUSE_DRAGGEDevents may not be delivered during a native Drag&Drop operation.
mouseMovedpublic void mouseMoved
(MouseEvent e)Invoked when the mouse button has been moved on a component (with no buttons no down).