Java “Could Not Serialize the Data”
问题 I'm trying to get my clipboard to receive some custom data in a drag and drop. The custom data is another java type. This other type does implement serializable, so I'm really not sure why this isn't working. Any ideas are appreciated! imgView.setOnDragDetected(new EventHandler<MouseEvent>() { public void handle(MouseEvent event) { ClipboardContent content = new ClipboardContent(); content.put(dataFormat, RHSIconizedToken.this); Dragboard db = imgView.startDragAndDrop(TransferMode.ANY); db