wood burning stoves 2.0*
The moose likes Swing / AWT / SWT and the fly likes copy/paste Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "copy/paste" Watch "copy/paste" New topic
Author

copy/paste

glenn lee
Greenhorn

Joined: Jan 14, 2004
Posts: 1
hi all, I need copy some JLabels and Graphic2D rectangles from JFrame to system clipboard so that they can be pasted to other application like MSWord, any ideas or pointer? Thanks!
Don Kiddick
Ranch Hand

Joined: Dec 12, 2002
Posts: 580
Things that are text based should just work. Other types are a bit more work. Check out the java.awt.datatransfer package in particular the Transferable interface and the DataFlavor class.
D.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: copy/paste
 
Similar Threads
Australians: New HFSJ Book on eBay
Copying of column
Copy code to TextPad - no linefeeds??
Instructor's Solution to 4b
need help with a display method for an applet