| Package | Description | 
|---|---|
| java.awt | Contains all of the classes for creating user
interfaces and for painting graphics and images. | 
| 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 | Method and Description | 
|---|---|
| <T extends DragGestureRecognizer> | Toolkit. createDragGestureRecognizer(Class<T> abstractRecognizerClass,
                           DragSource ds,
                           Component c,
                           int srcActions,
                           DragGestureListener dgl)Creates a concrete, platform dependent, subclass of the abstract
 DragGestureRecognizer class requested, and associates it with the
 DragSource, Component and DragGestureListener specified. | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | MouseDragGestureRecognizerThis abstract subclass of  DragGestureRecognizerdefines aDragGestureRecognizerfor mouse-based gestures. | 
| Modifier and Type | Method and Description | 
|---|---|
| <T extends DragGestureRecognizer> | DragSource. createDragGestureRecognizer(Class<T> recognizerAbstractClass,
                           Component c,
                           int actions,
                           DragGestureListener dgl)Creates a new  DragGestureRecognizerthat implements the specified
 abstract subclass ofDragGestureRecognizer, and
 sets the specifiedComponentandDragGestureListeneron
 the newly created object. | 
| Modifier and Type | Method and Description | 
|---|---|
| DragGestureRecognizer | DragSource. createDefaultDragGestureRecognizer(Component c,
                                  int actions,
                                  DragGestureListener dgl)Creates a new  DragGestureRecognizerthat implements the default
 abstract subclass ofDragGestureRecognizerfor thisDragSource,
 and sets the specifiedComponentandDragGestureListeneron the
 newly created object. | 
| DragGestureRecognizer | DragGestureEvent. getSourceAsDragGestureRecognizer()Returns the source as a  DragGestureRecognizer. | 
| Constructor and Description | 
|---|
| DragGestureEvent(DragGestureRecognizer dgr,
                int act,
                Point ori,
                List<? extends InputEvent> evs)Constructs a  DragGestureEventobject given by theDragGestureRecognizerinstance firing this event,
 anactparameter representing
 the user's preferred action, anoriparameter
 indicating the origin of the drag, and aListof
 events that comprise the gesture(evsparameter). | 
 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, 2015, Oracle and/or its affiliates.  All rights reserved.