## Uses of Class
java.awt.dnd.DropTargetEvent

- Packages that use DropTargetEvent
  Package | Description
  --- | ---
  java.awt.dnd | Drag and Drop is a direct manipulation gesture found in many Graphical User Interface systems that provides a mechanism to transfer information between two entities logically associated with presentation elements in the GUI.

- - ### Uses of DropTargetEvent in java.awt.dnd

    Subclasses of DropTargetEvent in java.awt.dnd
    Modifier and Type | Class | Description
    --- | --- | ---
    `class` | `DropTargetDragEvent` The `DropTargetDragEvent` is delivered to a `DropTargetListener` via its dragEnter() and dragOver() methods.
    `class` | `DropTargetDropEvent` The `DropTargetDropEvent` is delivered via the `DropTargetListener` drop() method.

    Methods in java.awt.dnd with parameters of type DropTargetEvent
    Modifier and Type | Method | Description
    --- | --- | ---
    `void` | DropTargetAdapter.`dragExit(DropTargetEvent dte)` Called while a drag operation is ongoing, when the mouse pointer has exited the operable part of the drop site for the `DropTarget` registered with this listener.
    `void` | DropTargetListener.`dragExit(DropTargetEvent dte)` Called while a drag operation is ongoing, when the mouse pointer has exited the operable part of the drop site for the `DropTarget` registered with this listener.
    `void` | DropTarget.`dragExit(DropTargetEvent dte)` Calls `dragExit` on the registered `DropTargetListener` and passes it the specified `DropTargetEvent`.

Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2026, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.