• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

getContents method of Clipboard class gives old data

padmanabh dongre
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic