Example usage for java.awt.dnd DragSource addDragSourceListener

List of usage examples for java.awt.dnd DragSource addDragSourceListener

Introduction

In this page you can find the example usage for java.awt.dnd DragSource addDragSourceListener.

Prototype

public void addDragSourceListener(DragSourceListener dsl) 

Source Link

Document

Adds the specified DragSourceListener to this DragSource to receive drag source events during drag operations initiated with this DragSource .

Usage

From source file:unikn.dbis.univis.explorer.VExplorer.java

License:asdf

private void initDragAndDrop() {
    DragSource dragSource = DragSource.getDefaultDragSource();
    dragSource.addDragSourceListener(tree);
    dragSource.createDefaultDragGestureRecognizer(tree, DnDConstants.ACTION_COPY, tree);
}