Example usage for java.awt.dnd DropTargetListener interface-usage

List of usage examples for java.awt.dnd DropTargetListener interface-usage

Introduction

In this page you can find the example usage for java.awt.dnd DropTargetListener interface-usage.

Usage

From source file DragDropTreeExample.java

class FileTreeDropTarget implements DropTargetListener, PropertyChangeListener {
    public FileTreeDropTarget(FileTree tree) {
        this.tree = tree;

        // Listen for changes in the enabled property
        tree.addPropertyChangeListener(this);