Example usage for java.awt.dnd DropTarget setActive

List of usage examples for java.awt.dnd DropTarget setActive

Introduction

In this page you can find the example usage for java.awt.dnd DropTarget setActive.

Prototype


public synchronized void setActive(boolean isActive) 

Source Link

Document

Sets the DropTarget active if true , inactive if false .

Usage

From source file:org.nuclos.client.ui.collect.CollectController.java

protected void setupDragDrop() {
    OneDropNuclosDropTargetListener listener = new OneDropNuclosDropTargetListener(this, ClientParameterProvider
            .getInstance().getIntValue(ParameterProvider.KEY_DRAG_CURSOR_HOLDING_TIME, 600));
    DropTarget drop = new DropTarget(this.getResultTable(), listener);
    drop.setActive(true);
}