File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Java in General
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
 
Consider Paul's rocket mass heater.
 
subject: Is there any way of getting an image from the system clipboard?