Trail: Creating a GUI With JFC/Swing
Lesson: Drag and Drop and Data Transfer
Adding Cut, Copy and Paste (CCP)
Home Page > Creating a GUI With JFC/Swing > Drag and Drop and Data Transfer
Adding Cut, Copy and Paste (CCP)
So far our discussion has centered mostly around drag and drop support. However, it is an easy matter to hook up cut or copy or paste (ccp) to a transfer handler. This requires the following steps:

Next we look at a cut and paste example that feature a text component.

Previous page: Top-Level Drop
Next page: CCP in a Text Component

Discuss
We welcome your participation in our community. Please keep your comments civil and on point. You may optionally provide your email address to be notified of replies — your information is not used for any other purpose. By submitting a comment, you agree to these Terms of Use.