JFXPanel Dragboard setDragView
Jeff Martin
jeff at reportmill.com
Fri Apr 18 14:43:38 UTC 2014
I'm trying to figure out how to implement a version of Dragboard.setDragView() that works with JFXPanel (which isn't currently supported). Years ago I did this in Swing by creating a window that followed the mouse around (at an offset, so it wouldn't take all the DragOver events).
I created a Popup Window and added an ImageView, but I can't figure out how to get the equivalent of DragSource events. I thought I could just call source.startFullDrag() in my DragDetected method then I would get MouseDrag events on my source, but that isn't happening. Is this a bug or am I doing something wrong?
Also, when I get my Popup moving, I'd really like it to be exactly under the mouse but have the Popup be MouseTransparent (or forward events to the window underneath).
Thanks for any thoughts!
jeff
PS - Here is the jira I filed: Dragboard setDragView doesn't work with JFXPanel
More information about the openjfx-dev
mailing list