An image(256 colors) copied in clipboard is not displayed in Java program correctly.
Some right portion of orginal image moves to the left side and shows up in the Java application.
CONFIGURATION :
JDK: 1.4.2/5.0u16/6.0u10
OS : WindowsXP(SP2, Japanese)
REPRODUCE:
The following steps are for 6.0u10.
1) Open SwingSet3.png in "paint" tool of Windows Accesorries
2) Save the image as **256 colors bitmap***
3) [edit]-[select All] in paint tools window
4) [edit]-[Copy]
(The image data is transferred to clipboard)
5) Compile the attached a.java
6) invoke "java a"
Please compare in the image in java application with the original one.
You can see the difference between both images.