List of usage examples for java.awt.dnd DragSourceContext setCursor
public synchronized void setCursor(Cursor c)
From source file:MainClass.java
public void dragEnter(DragSourceDragEvent e) { System.out.println("Entering drop target #2"); DragSourceContext ctx = e.getDragSourceContext(); int action = e.getDropAction(); if ((action & DnDConstants.ACTION_COPY) != 0) ctx.setCursor(DragSource.DefaultCopyDrop); else/*from w w w . j a v a2s. c o m*/ ctx.setCursor(DragSource.DefaultCopyNoDrop); }