Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.help > #734

Re: Image to ClipBoard (linux)

From "John B. Matthews" <nospam@nospam.invalid>
Newsgroups comp.lang.java.help
Subject Re: Image to ClipBoard (linux)
Date 2011-06-03 15:01 -0400
Organization The Wasteland
Message-ID <nospam-AB65DF.15013103062011@news.aioe.org> (permalink)
References <4de7e5e5$0$7305$426a34cc@news.free.fr> <nospam-736047.00194503062011@news.aioe.org> <4de8a64a$0$25000$426a34cc@news.free.fr>

Show all headers | View raw


In article <4de8a64a$0$25000$426a34cc@news.free.fr>,
 ricoh51 <ricoh51@free.fr> wrote:

> On Fri, 03 Jun 2011 00:19:45 -0400, John B. Matthews wrote:
> 
> > In article <4de7e5e5$0$7305$426a34cc@news.free.fr>,
> >  ricoh51 <ricoh51@free.fr> 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.

<http://download.oracle.com/javase/6/docs/api/javax/imageio/ImageIO.html>

-- 
John B. Matthews
trashgod at gmail dot com
<http://sites.google.com/site/drjohnbmatthews>

Back to comp.lang.java.help | Previous | NextPrevious in thread | Find similar


Thread

Image to ClipBoard (linux) ricoh51 <ricoh51@free.fr> - 2011-06-02 19:35 +0000
  Re: Image to ClipBoard (linux) rossum <rossum48@coldmail.com> - 2011-06-02 23:05 +0100
    Re: Image to ClipBoard (linux) ricoh51 <ricoh51@free.fr> - 2011-06-02 22:30 +0000
      Re: Image to ClipBoard (linux) rossum <rossum48@coldmail.com> - 2011-06-03 00:28 +0100
  Re: Image to ClipBoard (linux) "John B. Matthews" <nospam@nospam.invalid> - 2011-06-03 00:19 -0400
    Re: Image to ClipBoard (linux) ricoh51 <ricoh51@free.fr> - 2011-06-03 09:15 +0000
      Re: Image to ClipBoard (linux) "John B. Matthews" <nospam@nospam.invalid> - 2011-06-03 15:01 -0400

csiph-web