Hi,
I have a resistent problem, that I can solve easily.
In our project we have an applet and it contains a JTable. We implement the capability to make Copy / Paste
with a portion of code called ExcelAdapter.
You can see the ExcelAdapter in
This code uses the System Clipboard, and it usually works well.
The problem occurs when we make Copy and Paste several times between the applet and other application (like Excel).
Exactly we make a Copy operation from applet and afterwards a Paste operation in Excel.
Then we copy from Excel and paste in the applet, and we repeat this but with more rows, and,
when we want to paste again to the applet....the set of rows is incorrect, the set is the previous set.
The problem is like we didn´t have make the Copy in Excel, and then Paste the previous Copy.
In this point the Clipboard shows the set of data expected (the correct data, not the set pasted), then where is the set that the program paste?
We think that it could be that the applet remains linked to the old set of data, or the applet remains a reference of an incorrect clipboard.
Can someone help me?
I have a resistent problem, that I can solve easily.
In our project we have an applet and it contains a JTable. We implement the capability to make Copy / Paste
with a portion of code called ExcelAdapter.
You can see the ExcelAdapter in
This code uses the System Clipboard, and it usually works well.
The problem occurs when we make Copy and Paste several times between the applet and other application (like Excel).
Exactly we make a Copy operation from applet and afterwards a Paste operation in Excel.
Then we copy from Excel and paste in the applet, and we repeat this but with more rows, and,
when we want to paste again to the applet....the set of rows is incorrect, the set is the previous set.
The problem is like we didn´t have make the Copy in Excel, and then Paste the previous Copy.
In this point the Clipboard shows the set of data expected (the correct data, not the set pasted), then where is the set that the program paste?
We think that it could be that the applet remains linked to the old set of data, or the applet remains a reference of an incorrect clipboard.
Can someone help me?