< prev index next >
src/java.desktop/share/classes/java/awt/dnd/DragSourceContext.java
Print this page
@@ -277,11 +277,11 @@
public int getSourceActions() {
return sourceActions;
}
/**
- * Sets the cursor for this drag operation to the specified
+ * Sets the custom cursor for this drag operation to the specified
* {@code Cursor}. If the specified {@code Cursor}
* is {@code null}, the default drag cursor behavior is
* activated for this drag operation, otherwise it is deactivated.
*
* @param c the initial {@code Cursor} for this drag operation,
@@ -296,13 +296,15 @@
useCustomCursor = (c != null);
setCursorImpl(c);
}
/**
- * Returns the current drag {@code Cursor}.
+ * Returns the current custom drag {@code Cursor}.
*
- * @return the current drag {@code Cursor}
+ * @return the current custom drag {@code Cursor}, if it was set
+ * otherwise returns {@code null}.
+ * @see #setCursor
*/
public Cursor getCursor() { return cursor; }
/**
< prev index next >