| 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 | Field and Description | 
|---|---|
| protected DragSource | DragGestureRecognizer. dragSourceThe  DragSourceassociated with thisDragGestureRecognizer. | 
| Modifier and Type | Method and Description | 
|---|---|
| static DragSource | DragSource. getDefaultDragSource()Gets the  DragSourceobject associated with
 the underlying platform. | 
| DragSource | DragGestureRecognizer. getDragSource()This method returns the  DragSourcethisDragGestureRecognizerwill use in order to process the Drag and Drop
 operation. | 
| DragSource | DragGestureEvent. getDragSource()Returns the  DragSource. | 
| DragSource | DragSourceContext. getDragSource()Returns the  DragSourcethat instantiated thisDragSourceContext. | 
| Constructor and Description | 
|---|
| DragGestureRecognizer(DragSource ds)Construct a new  DragGestureRecognizergiven theDragSourceto be used in this
 Drag and Drop operation. | 
| DragGestureRecognizer(DragSource ds,
                     Component c)Construct a new  DragGestureRecognizergiven theDragSourceto be used
 in this Drag and Drop operation, and
 theComponentthisDragGestureRecognizershould "observe" for drag initiating gestures. | 
| DragGestureRecognizer(DragSource ds,
                     Component c,
                     int sa)Construct a new  DragGestureRecognizergiven theDragSourceto be used in this
 Drag and Drop
 operation, theComponentthisDragGestureRecognizershould "observe"
 for drag initiating gestures, and the action(s)
 supported for this Drag and Drop operation. | 
| DragGestureRecognizer(DragSource ds,
                     Component c,
                     int sa,
                     DragGestureListener dgl)Construct a new  DragGestureRecognizergiven theDragSourceto be used
 in this Drag and Drop operation, theComponentthisDragGestureRecognizershould "observe"
 for drag initiating gestures, the action(s) supported
 for this Drag and Drop operation, and theDragGestureListenerto notify
 once a drag initiating gesture has been detected. | 
| MouseDragGestureRecognizer(DragSource ds)Construct a new  MouseDragGestureRecognizergiven theDragSourcefor theComponent. | 
| MouseDragGestureRecognizer(DragSource ds,
                          Component c)Construct a new  MouseDragGestureRecognizergiven theDragSourcefor theComponentc, and theComponentto observe. | 
| MouseDragGestureRecognizer(DragSource ds,
                          Component c,
                          int act)Construct a new  MouseDragGestureRecognizergiven theDragSourcefor
 theComponentc,
 theComponentto observe, and the action(s)
 permitted for this drag operation. | 
| MouseDragGestureRecognizer(DragSource ds,
                          Component c,
                          int act,
                          DragGestureListener dgl)Construct a new  MouseDragGestureRecognizergiven theDragSourcefor theComponentc, theComponentto observe, the action(s)
 permitted for this drag operation, and
 theDragGestureListenerto
 notify when a drag gesture is detected. | 
 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.