| 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. | 
| java.awt.event | Provides interfaces and classes for dealing with different
types of events fired by AWT components. | 
| javax.swing | Provides a set of "lightweight"
(all-Java language) components that,
to the maximum degree possible, work the same on all platforms. | 
| javax.swing.event | Provides for events fired by Swing components. | 
| javax.swing.text.html | Provides the class  HTMLEditorKitand supporting classes
for creating HTML text editors. | 
| Modifier and Type | Field and Description | 
|---|---|
| protected ArrayList<InputEvent> | DragGestureRecognizer. eventsThe list of events (in order) that
 the  DragGestureRecognizer"recognized" as a "gesture" that triggers a drag. | 
| Modifier and Type | Method and Description | 
|---|---|
| InputEvent | DragGestureRecognizer. getTriggerEvent()This method returns the first event in the
 series of events that initiated
 the Drag and Drop operation. | 
| InputEvent | DragGestureEvent. getTriggerEvent()Returns the initial event that triggered the gesture. | 
| Modifier and Type | Method and Description | 
|---|---|
| Iterator<InputEvent> | DragGestureEvent. iterator()Returns an  Iteratorfor the events
 comprising the gesture. | 
| Modifier and Type | Method and Description | 
|---|---|
| protected void | DragGestureRecognizer. appendEvent(InputEvent awtie)Listeners registered on the Component by this Recognizer shall record
 all Events that are recognized as part of the series of Events that go
 to comprise a Drag and Drop initiating gesture via this API. | 
| 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). | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | KeyEventAn event which indicates that a keystroke occurred in a component. | 
| class  | MouseEventAn event which indicates that a mouse action occurred in a component. | 
| class  | MouseWheelEventAn event which indicates that the mouse wheel was rotated in a component. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | TransferHandler. exportAsDrag(JComponent comp,
            InputEvent e,
            int action)Causes the Swing drag support to be initiated. | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | MenuDragMouseEventMenuDragMouseEvent is used to notify interested parties that
 the menu element has received a MouseEvent forwarded to it
 under drag conditions. | 
| class  | MenuKeyEventMenuKeyEvent is used to notify interested parties that
 the menu element has received a KeyEvent forwarded to it
 in a menu tree. | 
| Modifier and Type | Method and Description | 
|---|---|
| InputEvent | HyperlinkEvent. getInputEvent()Returns the  InputEventthat triggered the hyperlink event. | 
| Constructor and Description | 
|---|
| HyperlinkEvent(Object source,
              HyperlinkEvent.EventType type,
              URL u,
              String desc,
              Element sourceElement,
              InputEvent inputEvent)Creates a new object representing a hypertext link event. | 
| Constructor and Description | 
|---|
| HTMLFrameHyperlinkEvent(Object source,
                       HyperlinkEvent.EventType type,
                       URL targetURL,
                       String desc,
                       Element sourceElement,
                       InputEvent inputEvent,
                       String targetFrame)Creates a new object representing a hypertext link event. | 
 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.