Clipboard doesn't see changes to the system-clipboard...  
Author Message
Dag Sunde





PostPosted: 2004-4-6 21:27:00 Top

java-programmer, Clipboard doesn't see changes to the system-clipboard... I have an signed Applet with a JTable, where I have implemented
"cut & paste" to/from the system clipboard.

(The applet is signed to get access to the system clipboard).

Everything works as expected; Copying a row from ie. Excel,
and pasting it into a JTable row, or the other way around.

But... After I do a "local" copy/paste, that is, copy a row from
my JTable, and pasting it into another row, the Applet doesn't see
changes to the system-clipboard anymore. If I after this copy a new
row out of Excel, and try to paste it into my Applet table, what I get
is the old data from my last "local" copy-paste operation.

Anyone seen this behaviour before?

Any hints?

TIA...


 
ak





PostPosted: 2004-4-16 2:18:00 Top

java-programmer >> Clipboard doesn't see changes to the system-clipboard... > Everything works as expected; Copying a row from ie. Excel,
> and pasting it into a JTable row, or the other way around.
>
> But... After I do a "local" copy/paste, that is, copy a row from
> my JTable, and pasting it into another row, the Applet doesn't see
> changes to the system-clipboard anymore. If I after this copy a new
> row out of Excel, and try to paste it into my Applet table, what I get
> is the old data from my last "local" copy-paste operation.
>
> Anyone seen this behaviour before?
no, but small example could help me to understand, what goes wrong.

> Any hints?
no need to use for local copy/paste system clipboard (create custom
clipboard).
however, this solution is a little bit ugly.

____________

http://reader.imagero.com the best java image reader.


 
Dag Sunde





PostPosted: 2004-4-16 6:03:00 Top

java-programmer >> Clipboard doesn't see changes to the system-clipboard... "ak" <email***@***.com> wrote in message news:c5mjkq$tq6$email***@***.com...
> > Everything works as expected; Copying a row from ie. Excel,
> > and pasting it into a JTable row, or the other way around.
> >
> > But... After I do a "local" copy/paste, that is, copy a row from
> > my JTable, and pasting it into another row, the Applet doesn't see
> > changes to the system-clipboard anymore. If I after this copy a new
> > row out of Excel, and try to paste it into my Applet table, what I get
> > is the old data from my last "local" copy-paste operation.
> >
> > Anyone seen this behaviour before?
> no, but small example could help me to understand, what goes wrong.

I'll try to set up a stand-alone exapmle that reproduces the problem
over the weekend...

>
> > Any hints?
> no need to use for local copy/paste system clipboard (create custom
> clipboard).
> however, this solution is a little bit ugly.

??? I didn't quite understand your last comment here...