Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Question about clipboards



At 10:11 -0800 29/11/02, Richard Bornat <email@hidden wrote:

On Friday, November 29, 2002, at 12:48 am, Wayne Rasband wrote:

>> I've looked at the documentation (1.3.1) for clipboards. It seems to
work with DataFlavors and Transferables. It seems to support text cut
and paste quite easily, but anything else ...

Does anybody have any experience of putting an image on the system
clipboard? Could you post some sample code?
>
There is sample code for putting an image on the system clipboard at

http://rsb.info.nih.gov/ij/plugins/clipboard.html
>
It requires Java 1.4.

Thanks. The answer appears to be "wait for 1.4" since it includes an
image flavor (or flavour :-)).

You can copy images to the clipboard in 1.3.1 but they have to be PICTs (not java.awt.Images), with a MIME type of image/x-pict.

-Rolf
--
Rolf Howarth, Square Box Systems Ltd, Stratford-upon-Avon UK.
_______________________________________________
java-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/java-dev
Be sure to read the FAQ http://developer.apple.com/java/faq/ before posting
Do not post admin requests to the list. They will be ignored.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.