When you drag a block of text from a Word document into a Java text component, the text is removed from the Word document. This is obviously undesirable in some cases. Is there a way I can prevent Word from removing the text, while still copying it into the Java text component?
Share
Return
falsefromTransferHandler.importData(JComponent comp,Transferable t). You can keep the data but you tell the drag system that you didn’t take it.