Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Drop action for droping a shortcut to desktop

843807Jun 8 2010 — edited Jun 9 2010
Hello,

I want to drop a shortcut to desktop from a GUI component.

In Transferable class getTransferData method DataFlavor passed on drop action is application/x-java-serialized-object; class=java.lang.String.
In DragSourceListener impl class dragEnter method parameter shows Copy and Move action can be used (DragSourceDragEvent.getDropAction()).
Cursor stays as crossed circle so dropping not available.

Anybody know how to do it?

Comments

Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Jul 7 2010
Added on Jun 8 2010
1 comment
540 views