| 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. | 
| Modifier and Type | Field and Description | 
|---|---|
| protected DropTargetContext | DropTargetEvent. contextThe  DropTargetContextassociated with thisDropTargetEvent. | 
| Modifier and Type | Method and Description | 
|---|---|
| protected DropTargetContext | DropTarget. createDropTargetContext()Creates the DropTargetContext associated with this DropTarget. | 
| DropTargetContext | DropTarget. getDropTargetContext()Gets the  DropTargetContextassociated
 with thisDropTarget. | 
| DropTargetContext | DropTargetEvent. getDropTargetContext()This method returns the  DropTargetContextassociated with thisDropTargetEvent. | 
| Constructor and Description | 
|---|
| DropTargetDragEvent(DropTargetContext dtc,
                   Point cursorLocn,
                   int dropAction,
                   int srcActions)Construct a  DropTargetDragEventgiven theDropTargetContextfor this operation,
 the location of the "Drag"Cursor's hotspot
 in theComponent's coordinates, the
 user drop action, and the source drop actions. | 
| DropTargetDropEvent(DropTargetContext dtc,
                   Point cursorLocn,
                   int dropAction,
                   int srcActions)Construct a  DropTargetDropEventgiven
 theDropTargetContextfor this operation,
 the location of the dragCursor's
 hotspot in theComponent's coordinates,
 the currently
 selected user drop action, and the current set of
 actions supported by the source. | 
| DropTargetDropEvent(DropTargetContext dtc,
                   Point cursorLocn,
                   int dropAction,
                   int srcActions,
                   boolean isLocal)Construct a  DropTargetEventgiven theDropTargetContextfor this operation,
 the location of the dragCursor's hotspot
 in theComponent's
 coordinates, the currently selected user drop action,
 the current set of actions supported by the source,
 and abooleanindicating if the source is in the same JVM
 as the target. | 
| DropTargetEvent(DropTargetContext dtc)Construct a  DropTargetEventobject with
 the specifiedDropTargetContext. | 
 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, 2017, Oracle and/or its affiliates.  All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.