Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

DnD duplicate element  RSS feed

 
meme kharousi
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all...
am trying to perform drag and drop from list of components -as icons - but they are moving not copying ,however, i used .ACTION_COPY
but it has no sense!
the sources are located in a separate class then the distination .i.e.coponents to be draged are in a class called componentslibrary and the distination class is called editor.
in source class :
DragDrop dndListener = new DragDrop();
DragSource dragSource = neDropTarget dropTarget1 = new DropTarget(this, DnDConstants.ACTION_COPY, dndListener);
//for each of the 6 components dragrecognizer were identified in order to be dragable otherwise can not be draged with .ACTION_COPY.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!