# Drag'n'Drop from other apps into my JUCE app

**URL:** <https://forum.juce.com/t/dragndrop-from-other-apps-into-my-juce-app/6220>\
**Category:** General JUCE discussion\
**Created:** [January 17, 2011, 5:46pm UTC](https://forum.juce.com/t/dragndrop-from-other-apps-into-my-juce-app/6220 "2011-01-17T17:46:18Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![zamrate](https://avatars.discourse-cdn.com/v4/letter/z/f4b2a3/32.png) [@zamrate](https://forum.juce.com/u/zamrate)\
**Post date:** [January 17, 2011, 5:46pm UTC](https://forum.juce.com/t/dragndrop-from-other-apps-into-my-juce-app/6220/1 "2011-01-17T17:46:18Z")

</div>

Is it possible to add some functionality that enables drag’n’drop (of images) from Internet Explorer or another app into my JUCE app? I’m sure this is not a straightforward task, especially because it’s OS-dependant. What ways could I use to achieve that?

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [January 17, 2011, 9:45pm UTC](https://forum.juce.com/t/dragndrop-from-other-apps-into-my-juce-app/6220/2 "2011-01-17T21:45:27Z")

</div>

If they’re files you just need to use the FileDragAndDropTarget class.

---

<div class="post-metadata">

**Author:** ![zamrate](https://avatars.discourse-cdn.com/v4/letter/z/f4b2a3/32.png) [@zamrate](https://forum.juce.com/u/zamrate)\
**Post date:** [January 19, 2011, 8:18am UTC](https://forum.juce.com/t/dragndrop-from-other-apps-into-my-juce-app/6220/3 "2011-01-19T08:18:51Z")

</div>

The FileDragAndDropTarget class was the first thing I tried to use. Didn’t work. Basically what I want to do is the following:  
I’m making a song manager. My song manager shows audio files together with their album artwork, and the user should be able to drag’n’drop images out of his Internet browser into my song manager. So when he drag’n’drops an image, this image is automatically attributed to a given audio file.

---

<div class="post-metadata">

**Author:** ![robiwan](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/robiwan/32/2446_2.png) [@robiwan](https://forum.juce.com/u/robiwan)\
**Post date:** [January 19, 2011, 9:00am UTC](https://forum.juce.com/t/dragndrop-from-other-apps-into-my-juce-app/6220/4 "2011-01-19T09:00:17Z")

</div>

In Windows at least, the content of the clipboard will be a bitmap image in this case. It then should be possible to create a ImageDropTarget to handle this.

---

<div class="post-metadata">

**Author:** ![TheVinn](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/thevinn/32/806_2.png) [@TheVinn](https://forum.juce.com/u/TheVinn)\
**Post date:** [January 19, 2011, 12:31pm UTC](https://forum.juce.com/t/dragndrop-from-other-apps-into-my-juce-app/6220/5 "2011-01-19T12:31:00Z")

</div>

> [@robiwan](#):
>
> In Windows at least, the content of the clipboard will be a bitmap image in this case

Something I find INCREDIBLY fracking ANNOYING when I drag a JPG out of Firefox and onto my desktop! Its a BMP instead of JPG!! ARGH!!
