# DropTarget in PSurface

**URL:** https://discourse.processing.org/t/droptarget-in-psurface/37616
**Category:** Libraries
**Created:** [June 18, 2022, 12:43pm UTC](https://discourse.processing.org/t/droptarget-in-psurface/37616 "2022-06-18T12:43:45Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![TimeLex](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/timelex/32/12869_2.png) [@TimeLex](https://discourse.processing.org/u/TimeLex)
#### Post date: [June 18, 2022, 12:43pm UTC](https://discourse.processing.org/t/droptarget-in-psurface/37616/1 "2022-06-18T12:43:45Z")

</div>

Hi  
I want my processing surface to receive drag and drop input like the DropTarget in Java. For example, if I grab an item from the desktop and release my mouse over the processing window, I want to get the path of the dropped file.

---

<div class="post-metadata">

### Author: ![mnse](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/mnse/32/16520_2.png) [@mnse](https://discourse.processing.org/u/mnse)
#### Post date: [June 18, 2022, 12:58pm UTC](https://discourse.processing.org/t/droptarget-in-psurface/37616/2 "2022-06-18T12:58:17Z")

</div>

Hi @TimeLex

Go to Menu Sketch → Import Library → add library and search for Drop.  
Usage can be found in File → Examples → Contributed Libraries → Drop (DropFilesAndFolders or DropBasics).

Cheers  
— mnse

---

<div class="post-metadata">

### Author: ![TimeLex](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/timelex/32/12869_2.png) [@TimeLex](https://discourse.processing.org/u/TimeLex)
#### Post date: [June 18, 2022, 4:45pm UTC](https://discourse.processing.org/t/droptarget-in-psurface/37616/3 "2022-06-18T16:45:56Z")

</div>

nice, this is exactly what I was searching for. Tanks
