-
Bug
-
Resolution: Not an Issue
-
P3
-
None
-
5.0
-
x86
-
linux_redhat_9.0
I am copying an image (java.awt.image) to the system clipboard on one JVM and I am retrieving the same from a java application running on another JVM. This does not work. The dataflavors returned by clipboard.getAvailableDataFlavors() are different for the same image when it is called on another JVM. When retrieving on the same JVM, the flavor returned by the clipboard is [mimetype=image/x-java-image, representationClass=java.awt.Image] but when running on a different JVM I am surprised to see image/png, image/jpeg flavors are returned with a rep class 'InputStream'. The actual image copied to the clipboard is a GIF but still clipboard returns png and jpeg flavors. I expect the clipboard to return only the java image flavor regardless of which jvm the data is retrieved. Moreover, it does not make sense to return png,jpeg formats for a gif image available on the clipboard.
This is reproducible on Tiger as well as Mustang. Could not regress it beyond that. This works fine on Win32 platforms but reproducible on Solaris/Linux with XToolkit as well as Motif.
I have attached a sample test. Exexcute it on first JVM as follows:
java ImageTransferTest <img file name>
An image will be loaded on the left of the frame. Click 'Copy'. Launch the same app on another JVM without killing the first one. In this frame, click on 'Paste'. Check the dataflavors shown in the console. If you see some flavors that do not match the image type, the bug is reproduced.
###@###.### 10/16/04 15:43 GMT
This is reproducible on Tiger as well as Mustang. Could not regress it beyond that. This works fine on Win32 platforms but reproducible on Solaris/Linux with XToolkit as well as Motif.
I have attached a sample test. Exexcute it on first JVM as follows:
java ImageTransferTest <img file name>
An image will be loaded on the left of the frame. Click 'Copy'. Launch the same app on another JVM without killing the first one. In this frame, click on 'Paste'. Check the dataflavors shown in the console. If you see some flavors that do not match the image type, the bug is reproduced.
###@###.### 10/16/04 15:43 GMT
- relates to
-
JDK-4859006 XDnD: Can not drag and drop from Staroffice to Java Application
- Closed