Example usage for java.awt.dnd DragSourceContext getComponent

List of usage examples for java.awt.dnd DragSourceContext getComponent

Introduction

In this page you can find the example usage for java.awt.dnd DragSourceContext getComponent.

Prototype


public Component getComponent() 

Source Link

Document

Returns the Component associated with this DragSourceContext .

Usage

From source file:Main.java

public void dragEnter(DragSourceDragEvent e) {
    DragSourceContext ctx = e.getDragSourceContext();

    System.out.println(ctx.getComponent());
}