Example usage for java.awt.dnd DragSourceDragEvent getUserAction

List of usage examples for java.awt.dnd DragSourceDragEvent getUserAction

Introduction

In this page you can find the example usage for java.awt.dnd DragSourceDragEvent getUserAction.

Prototype

public int getUserAction() 

Source Link

Document

This method returns the user drop action.

Usage

From source file:TreeDragTest.java

public void dropActionChanged(DragSourceDragEvent dsde) {
    System.out.println("Action: " + dsde.getDropAction());
    System.out.println("Target Action: " + dsde.getTargetActions());
    System.out.println("User Action: " + dsde.getUserAction());
}