This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes how to do copy/paste using swing Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "how to do copy/paste using swing" Watch "how to do copy/paste using swing" New topic
Author

how to do copy/paste using swing

Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
I have created a menu with file edit....
in edit i have option of cut copy and paste
i want to cut from one textbox and paste in second textbox using the menu
hou to do it using swing.
Cindy Glass
"The Hood"
Sheriff

Joined: Sep 29, 2000
Posts: 8521
Here is an example:

--------------------------------------------------------------------------------
NOTE:
Java does not currently support pasting objects like images from external applications. You could copy an ImageIcon and treat it as a javaSerializedObjectMimeType. However, it would then only be pasteable into another Java program, or a program that understands Java's serialization mechanism, which will be described in the "Object Persistence and Serialization" section of Chapter 19.

From:
http://developer.java.sun.com/developer/Books/MasteringJava/Ch16/index.html


"JavaRanch, where the deer and the Certified play" - David O'Meara
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: how to do copy/paste using swing
 
It's not a secret anymore!