I'm building an application in JavaFx 2.2 which consist in a splitpane with a panel of component on the left side and a working sheet on the right side. Basically what i would like to do is a simple wysiwyg editor where you drag component from the left to the right, then arrange them on the right side.
I've spent the last couple of days trying to implement the same drag-and-drop feature that has SceneBuilder, without luck..
Following the sample at http://docs.oracle.com/javafx/2/drag_drop/HelloDragAndDrop.java.html i've managed to get a drag-and-drop working but i can't find any way to change the default file icon appearing when you are dragging (and replace it with a snapshot of the component i'm dragging) and how to show the forbidden icon when you are over something you can't dropped on.
Any help (could be advice, code snippet, sample or else) would be greatly appreciated :)
Thanks !
[UPDATE]
Finally managed it myself:
_
_
Maybe late, but with the setDragView option, is more simpple by now :)