I agree that this is strange. Thank you for looking into this. No, I am
working only with text.
I have just tested it on Linux (RH8), jdk 1.4.1, j0.20.1, copying from Gedit
to j. It seems that on Linux at least, the Ctrl + C/Ctrl + V command for
copying contents to the clipboard is messing things up. Things work fine if
you use the menus.
On windows, what can I say, I don't know what's going on. Its behavior is
random, at one point I had the same behavior on linux but it went away.
I did notice that on Windows, using ctrl c/v to copy past ALWAYS fails. You
have to copy successive items to the clipboard "twice" before J can see
them. I have tried this on more than one machine, so I find it really
strange that nobody else is seeing it.
Oh well, I will try to find out what's going on and post the answer if I
----- Original Message -----
From: "Bruce H" <bhellst@...>
To: "Peter Graves" <peter@...>; "Greg J. Lehane"
Sent: Tuesday, August 12, 2003 11:16 AM
Subject: Re: [j-devel] clipboard on win2k/xp
> I'm not seeing this behavior with J 0.20.1.8 and Java 1.4.1_02 on Win2K
> went into Word and copied some text to the clipboard and pasted it in J.
> back to Word and copied some more text and pasted that into J and it
> Greg, are you trying to paste other objects besides text? I think I've
> something similar if I copy an image or something other than text to the
> clipboard, then I think J will continue to just paste the text that was
> ----- Original Message -----
> From: "Peter Graves" <peter@...>
> To: "Greg J. Lehane" <devlists@...>
> Cc: <armedbear-j-devel@...>
> Sent: Tuesday, August 12, 2003 5:23 AM
> Subject: Re: [j-devel] clipboard on win2k/xp
> On Mon, 11 Aug 2003 at 12:37:57 -0700, Greg J. Lehane wrote:
> > Hi Folks,
> > First off, congratulations on this excellent tool. It fits perfectly
> > needs!
> > I have a question about the clipboard on windows. Apologies if it is a
> > dumb question, but I have been looking at the code and cannot see an
> > answer. When I copy some text from a native application to the
> > then hit edit -> paste in J, it pastes fine. However, if I copy anything
> > else to the clipboard, J only "remembers" the first thing copied and
> > pasting it.
> > I am working with an older version of J 0.18.1 (I am tied to
> > however I have verified this behavior on the latest version (0.20.1)
> > The paste() method in org.armedbear.j.Editor has a statment like:
> > Transferrable t = getToolkit().getSystemClipboard().getContents(this);
> > t is always the first string copied to the clipboard. Subsequent
> > don't update the clipboard returned by getToolkit().getS..Clipboard().
> > Is there something I am missing here, or is this something that anyone
> > seen before?
> Unfortunately I don't have access to a Windows installation to test
> this. On Linux, it works just fine...
> The code in this area has not been changed (deliberately, that is) in a
> long time.
> Can anyone running Windows shed any light on this issue?
> This SF.Net email sponsored by: Free pre-built ASP.NET sites including
> Data Reports, E-commerce, Portals, and Forums are available now.
> Download today and enter to win an XBOX or Visual Studio .NET.
> armedbear-j-devel mailing list