List of usage examples for java.awt.dnd DragSourceDragEvent getDropAction
public int getDropAction()
From source file:JLabelDragSource.java
public void dragOver(DragSourceDragEvent dsde) { DnDUtils.debugPrintln("Drag Source: dragOver, drop action = " + DnDUtils.showActions(dsde.getDropAction())); }
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 .jav a 2 s . c o m ctx.setCursor(DragSource.DefaultCopyNoDrop); }
From source file:JLabelDragSource.java
public void dragEnter(DragSourceDragEvent dsde) { DnDUtils.debugPrintln(//from ww w.j av a 2s . c om "Drag Source: dragEnter, drop action = " + DnDUtils.showActions(dsde.getDropAction())); }
From source file:JLabelDragSource.java
public void dropActionChanged(DragSourceDragEvent dsde) { DnDUtils.debugPrintln(// www . j ava2 s .c o m "Drag Source: dropActionChanged, drop action = " + DnDUtils.showActions(dsde.getDropAction())); }
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()); }