Forum Stats

  • 3,872,606 Users
  • 2,266,458 Discussions
  • 7,911,262 Comments

Discussions

Drop action for droping a shortcut to desktop

843807
843807 Member Posts: 46,582
edited Jun 9, 2010 1:14AM in Abstract Window Toolkit (AWT)
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

  • User_64CKJ
    User_64CKJ Member Posts: 7,279 Silver Badge
    plik wrote:
    ..I want to drop a shortcut to desktop from a GUI component.
    What kind of 'GUI component'? It would not make sense to have a desk-top short-cut to a tree within a browser (for example), though it might make sense to have a short-cut for the browser itself, or any individual document the browser deals with.
This discussion has been closed.