Javafx drag and drop get source
I have code implementing javafx drag and drop similar to http://docs.oracle.com/javafx/2/drag_drop/HelloDragAndDrop.java.html I want to test if the user has droped the image in the correct area I don't know if there is a method to get the source and get the target so that I can check if the source match the correct target. I am using the this visual interface: https://dl.dropbox.com/u/6241504/3-2-2013%207-35-50%20PM.png Thanks in advance...
You can get the the gesture source and the target too, so you can easily check wether your source and target is equal or you can accept it or not. You need to cast to the specific type!
event.getGestureSource();
or
event.getGestureTarget();
链接地址: http://www.djcxy.com/p/65922.html
上一篇: 寻找JavaFX时间表图表
下一篇: Javafx拖放获取源代码