Uses of Interface java.awt.dnd.DropTargetListener (Java Platform SE 8 )
Date: 2020-03-26

## Uses of Interface
java.awt.dnd.DropTargetListener

- Packages that use DropTargetListener
  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 DropTargetListener in java.awt.dnd

    Classes in java.awt.dnd that implement DropTargetListener
    Modifier and Type | Class and Description
    --- | ---
    `class` | `DropTarget` The `DropTarget` is associated with a `Component` when that `Component` wishes to accept drops during Drag and Drop operations.
    `class` | `DropTargetAdapter` An abstract adapter class for receiving drop target events.

    Methods in java.awt.dnd with parameters of type DropTargetListener
    Modifier and Type | Method and Description
    --- | ---
    `void` | DropTarget.`addDropTargetListener(DropTargetListener dtl)` Adds a new `DropTargetListener` (UNICAST SOURCE).
    `void` | DropTarget.`removeDropTargetListener(DropTargetListener dtl)` Removes the current `DropTargetListener` (UNICAST SOURCE).

    Constructors in java.awt.dnd with parameters of type DropTargetListener
    Constructor and Description
    `DropTarget(Component c, DropTargetListener dtl)` Creates a `DropTarget` given the `Component` to associate itself with, and the `DropTargetListener` to handle event processing.
    `DropTarget(Component c, int ops, DropTargetListener dtl)` Creates a `DropTarget` given the `Component` to associate itself with, an `int` representing the default acceptable action(s) to support, and a `DropTargetListener` to handle event processing.
    `DropTarget(Component c, int ops, DropTargetListener dtl, boolean act)` Creates a `DropTarget` given the `Component` to associate itself with, an `int` representing the default acceptable action(s) to support, a `DropTargetListener` to handle event processing, and a `boolean` indicating if the `DropTarget` is currently accepting drops.
    `DropTarget(Component c, int ops, DropTargetListener dtl, boolean act, FlavorMap fm)` Creates a new DropTarget given the `Component` to associate itself with, an `int` representing the default acceptable action(s) to support, a `DropTargetListener` to handle event processing, a `boolean` indicating if the `DropTarget` is currently accepting drops, and a `FlavorMap` to use (or null for the default `FlavorMap`).

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, 2020, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.