I am trying to paste data into Java from a native application, with the intention of modifying it and putting it back into the clipboard.
I have used "ClipView" (from Windows clipboard raw viewer) to verify that the data I require is actually in the clipboard, and can modify the data in ClipView and paste it back into the original application.
ClipView gives the contents as format "50347: CxCellData" and the data is mainly text (although I am not sure how ClipView displays control characters)
When I call getDataTransferFlavors on the contents, it returns an empty array.
I have tried defining a new flavour using the command below, but it doesn't work.
DataFlavor aNewFlavour = new DataFlavor("application/octet-stream", "CxCellData");
How do I create a DataFlavor that links to format "50347: CxCellData"?
Is there anything I need to do to register the flavour?
Note, the application that I am trying to interact with is written in VB (I believe)
Thanks