1 Reply Latest reply: Jun 9, 2010 12:14 AM by 793415 RSS

    Drop action for droping a shortcut to desktop

    843807
      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?
        • 1. Re: Drop action for droping a shortcut to desktop
          793415
          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.