Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Drag N Drop...  RSS feed

 
Manish Hatwalne
Ranch Hand
Posts: 2596
Android Firefox Browser Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to implement drag and drop for images using JLables (icons of JLabels). It is working fine for images only, but now I would like to transfer the text (label text) as well as the image; how can I achieve this? How do I write the my TransferHandler's createTransferable(JComponent comp) method so that it handles image as well as text.
TIA,
- Manish
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!