开发者

JavaFX Drag and Drop with Interacting Objects

I am attemping to implement drag and drop that is not just an image being dragged around the screen but has interaction between dragged and droppedon object.

in short what I'm trying to achive is: When i drag one 'source' object and drop it on a 'target' object the 'target' object recieves information about the'source' that was dropped on it

This ( http://rakeshmenonp.wordpress.com/2009/07/20/javafx-drag-and-drop/ ) sample application describes its actions as what I'm looking for however the app doesnt work for me. I was able to build the source (it requires a few modifications, as the yahoo shopping URL no longer works) and with a few alterations get the shopping items to show up. However there is no drag/drop functionality.

Does anyone have any other samples that they could point me toward?

All of my javafx searches 开发者_Python百科for drag and drop come back with apps that just deal with moving an object on the screen, or they use 'canvas' which is no longer supported

thanks, stephanie


There is no standard Drag and Drop support in JavaFX 1.3.1 in the way you want to use it. There was an alpha preview being worked on, but it did not make it into the release. As JavaFX is being totally rewritten it is hard to say what support for DnD will be in the new release.


Check this out I found this after relentless search. the below is a drag and drop example in javafx

http://0divides0.wordpress.com/2010/10/21/image-drag-and-drop/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜