I have a non-serializable object (it contains related properties) listed in JavaFX TreeView. I would like the user to be able to drag the TreeView element containing the object onto the constructed LineChart, but I cannot populate the DragBoard with this object since it is not serializable. I really do not want to copy the object, just a link to it. I tried to set TransferMode to LINK, but this, apparently, is only an indicator of the intended action; the process still required serialization of the object to be dragged.
How can I only drag an object link?
source share