Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!feeder.erje.net!border3.nntp.ams.giganews.com!Xl.tags.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!local2.nntp.ams.giganews.com!nntp.bt.com!news.bt.com.POSTED!not-for-mail NNTP-Posting-Date: Thu, 02 Jun 2011 17:04:55 -0500 From: rossum Newsgroups: comp.lang.java.help Subject: Re: Image to ClipBoard (linux) Date: Thu, 02 Jun 2011 23:05:33 +0100 Message-ID: <252gu6d1j879vs2dv6brd74fms1nf496e3@4ax.com> References: <4de7e5e5$0$7305$426a34cc@news.free.fr> X-Newsreader: Forte Agent 1.93/32.576 English (American) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 17 X-Usenet-Provider: http://www.giganews.com X-AuthenticatedUsername: NoAuthUser X-Trace: sv3-Pn8W25Fmf+lM7zvW97CpXHLrHXrnPIWVj59r6Rs5O14wS0YfB1Kdna9XNWakI4mE7yT8PfzPl/bSQ9o!G+fkUqQoHkqsJZDOUqDoJ2s498ju1SSpSVC0QkhXO7siq9n4ztUAMve46MS/lp2Qab/Zg7nvhRLS!JrU94Q== X-Complaints-To: abuse@btinternet.com X-DMCA-Complaints-To: abuse@btinternet.com X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 1526 Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.help:729 On 02 Jun 2011 19:35:01 GMT, ricoh51 wrote: > public void copyToClipboard(){ > Clipboard clipboard = Toolkit.getDefaultToolkit >().getSystemClipboard(); > ImageTransferable selection = new ImageTransferable >(image); > clipboard.setContents(selection, null); I am not sure if it is causing your problem, but in my clipboard code I set the owner parameter here to 'this', not to 'null'. rossum > } >