Platform: Mac OS X 10.7.3
JDK: 7u4 b17
Compile attached java file, BasicDnD.java
Run BasicDnD twice in different terminal session, so that BasicDnD will be invoked from differnt JVMs. There are two Java frames with some text in the textarea within it. The two frames are not invoked from one single JVM.
Try to drag some text in one frame to the other. IF the non-English text are draged and droped to the other JTextArea (in another JVM) for the first time, the text will become question marks or garbled characters in the drop target. Something interesting is that, if we drag and drop the non-English contents for the second time, the data transfer will work fine. This problem happens in the DnD between components of different JVMs(not single JVM), and only happens in the first DnD for non-English contents.