• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to set Target Location for javaFx drag and drop feature in Netbeans?

 
shafeeque ali
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am here developing a gui for my project. On this project i am implementing a feature of Drag and Drop. but i am having a problem while droping the image(icon of label). i cannot drop the image on any of the panel which i have. but i am able to drop it in same panel and i am getting the image copied. So can anyone please help me, how to set the target location of the drag n Drop function.

Thanks in Advance.
gui2.png
[Thumbnail for gui2.png]
 
John Damien Smith
Ranch Hand
Posts: 296
14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Oracle provide a tutorial for Drag and Drop:
https://docs.oracle.com/javase/8/javafx/events-tutorial/drag-drop.htm

I'm not sure much more information could be provided here.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic