Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!.POSTED!not-for-mail From: "John B. Matthews" Newsgroups: comp.lang.java.help Subject: Re: Image to ClipBoard (linux) Date: Fri, 03 Jun 2011 15:01:31 -0400 Organization: The Wasteland Lines: 34 Message-ID: References: <4de7e5e5$0$7305$426a34cc@news.free.fr> <4de8a64a$0$25000$426a34cc@news.free.fr> NNTP-Posting-Host: LQJtZWzu+iKlBROuDg+IUg.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: MT-NewsWatcher/3.5.3b3 (Intel Mac OS X) X-Notice: Filtered by postfilter v. 0.8.2 Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.help:734 In article <4de8a64a$0$25000$426a34cc@news.free.fr>, ricoh51 wrote: > On Fri, 03 Jun 2011 00:19:45 -0400, John B. Matthews wrote: > > > In article <4de7e5e5$0$7305$426a34cc@news.free.fr>, > > ricoh51 wrote: > > > >> I have problems to place an image on the clipboard (ubuntu 10.10). The > >> code is below, and for example Gimp says that there is nothing in the > >> clipboard! > > > > I can verify that your example works on Mac OS X; the desktop has a > > "Show Clipboard" command in the Edit menu. The same code appears to > > fail on Ubuntu 10.04, but how does one verify? I can see that my > > image viewer's paste command is disabled, but I'm not sure that's > > reliable. > > It appears that this is a (old) bug from Sun : > http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6607163 > and certainly from OpenJDK too... > > Incredible! No way to copy an image from a java program into the > clipboard (imageJ and MarvinSketch are unable to copy an image...) Thank you for the bug link. Perhaps ImageIO.write() could offer a work-around, albeit less convenient. -- John B. Matthews trashgod at gmail dot com