wood burning stoves 2.0*
The moose likes Java in General and the fly likes getContents method of Clipboard class gives old data Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "getContents method of Clipboard class gives old data" Watch "getContents method of Clipboard class gives old data" New topic
Author

getContents method of Clipboard class gives old data

padmanabh dongre
Greenhorn

Joined: Aug 13, 2001
Posts: 24
Hi
I am having a particular problem in retrieving data from system clipboard. the problem and the flow is as follows.
First i invoke a method which gets the system clipboard from Toolkit and using its setContents method puts my own java object on the clipboard.
Then I invoke a native method which creates some image using a native code and puts it on the system clipboard.
Then lastly I invoke another method which calls getContents method of clipboard class to retrieve the image placed on the clipboard
But what i get is the old java object which i put on the system clipboard earlier. this has already been listed as a fixed bug in jdk1.2.2 but i am still getting this problem.
I am using Windows 2000 and JDK 1.4.0
Has somebody come across a simillar problem ? please help me regarding this.
Regards,
Padmanabh.
 
 
subject: getContents method of Clipboard class gives old data