-
DragSourceDropEvent
public DragSourceDropEvent​(DragSourceContext dsc,
int action,
boolean success,
int x,
int y)
Construct a DragSourceDropEvent for a drop, given the DragSourceContext , the drop action, a boolean indicating if the drop was successful, and coordinates. The argument action should be one of DnDConstants that represents a single action. This constructor does not throw any exception for invalid action .
-
Parameters:
-
dsc - the DragSourceContext associated with this DragSourceDropEvent
-
action - the drop action
-
success - a boolean indicating if the drop was successful
-
x - the horizontal coordinate for the cursor location
-
y - the vertical coordinate for the cursor location
-
Throws:
-
IllegalArgumentException - if dsc is null .
-
Since:
- 1.4
|
|