MenuDragMouseListener (Java SE 17 & JDK 17)
Description: declaration: module: java.desktop, package: javax.swing.event, interface: MenuDragMouseListener
Keywords: javax.swing.event.MenuDragMouseListener interface

Module java.desktop
Package javax.swing.event

# Interface MenuDragMouseListener

All Superinterfaces:
  `EventListener`

public interface MenuDragMouseListener extends EventListener
Defines a menu mouse-drag listener.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `menuDragMouseDragged(MenuDragMouseEvent e)`
  Invoked when the mouse is being dragged in a menu component's display area.
  `void`
  `menuDragMouseEntered(MenuDragMouseEvent e)`
  Invoked when the dragged mouse has entered a menu component's display area.
  `void`
  `menuDragMouseExited(MenuDragMouseEvent e)`
  Invoked when the dragged mouse has left a menu component's display area.
  `void`
  `menuDragMouseReleased(MenuDragMouseEvent e)`
  Invoked when a dragged mouse is release in a menu component's display area.

- ## Method Details

  - ### menuDragMouseEntered

    void menuDragMouseEntered(MenuDragMouseEvent e)
    Invoked when the dragged mouse has entered a menu component's display area.
    Parameters:
      `e` - a MenuDragMouseEvent object

  - ### menuDragMouseExited

    void menuDragMouseExited(MenuDragMouseEvent e)
    Invoked when the dragged mouse has left a menu component's display area.
    Parameters:
      `e` - a MenuDragMouseEvent object

  - ### menuDragMouseDragged

    void menuDragMouseDragged(MenuDragMouseEvent e)
    Invoked when the mouse is being dragged in a menu component's display area.
    Parameters:
      `e` - a MenuDragMouseEvent object

  - ### menuDragMouseReleased

    void menuDragMouseReleased(MenuDragMouseEvent e)
    Invoked when a dragged mouse is release in a menu component's display area.
    Parameters:
      `e` - a MenuDragMouseEvent object