aspose file tools
The moose likes Java in General and the fly likes Is there any way of getting an image from the system clipboard? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Mongo DB Applied Patterns this week in the MongoDB forum
or a resume review from Five Year Itch in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "Is there any way of getting an image from the system clipboard?" Watch "Is there any way of getting an image from the system clipboard?" New topic
Author

Is there any way of getting an image from the system clipboard?

Anil Vupputuri
Ranch Hand

Joined: Oct 31, 2000
Posts: 527
I managed to create my own clipboard, copy anything I like onto it, and paste it from there.
But...let's say I pressed PrintScreen, the resultant image is captured on the System Clipboard. I create my own clipboard and try to set it contents equal to that of the System Clipboard and it results in a NullPointerException. The previous problem with UnSupportedDataFlavor Exceptions has been cleared. But I still can't get anything other than strings and plain text from the System Clipboard.
Anyone have any ideas?]
Anil.

SCJP 1.5, SCEA, ICED (287,484,486)
Carl Trusiak
Sheriff

Joined: Jun 13, 2000
Posts: 3340
I've done no testing of this but, Have you tryed


[This message has been edited by Carl Trusiak (edited December 07, 2000).]


I Hope This Helps
Carl Trusiak, SCJP2, SCWCD
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Is there any way of getting an image from the system clipboard?
 
Similar Threads
Copying image to the system clipboard
Accesing system clipboard in Applet
getContents method of Clipboard class gives old data
Capturing an image to system clipboard
problem while pasting images on to the java application from Mac Systemclipboard