![]() |
Sponsored Link •
|
Advertisement
|
Advertisement
|
This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.
Message:
I've just implemented a cut and paste in a program that take some circles from a canvas (swing) and paste it in another application. But the problem is that it doesn't delete the circles in the old canvas... working as a copy and not a cut. The circles are actually vectors and below you will find the code for this part. My question is: how to delete those circles from the old canvas? class VectorSelection implements Transferable, ClipboardOwner { public VectorSelection (Vector parShape) public synchronized Object getTransferData (DataFlavor parFlavor) public void lostOwnership (Clipboard parClipboard, Transferable parTransferable) { System.out.println ("Lost ownership"); Replies:
|
Sponsored Links
|