This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman on-line!
See this thread for details.
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 Elasticsearch in Action this week in the Big Data 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
 
wood burning stoves
 
subject: Is there any way of getting an image from the system clipboard?