public void setDropAction (int dropAction)

Sets the drop action for the transfer - which must represent a drop - to the given action, instead of the default user drop action. The action must be supported by the source's drop actions, and must be one of COPY, MOVE or LINK.

This method is only for use with drag and drop transfers. Calling it when isDrop() is false results in an IllegalStateException.

Parameters:
dropAction    the drop action

Exceptions:
IllegalStateException    if this is not a drop
IllegalArgumentException    if an invalid action is specified

See also:
getDropAction, getUserDropAction, getSourceDropActions, isDrop()