Two Laptop Bag
The moose likes Swing / AWT / SWT and the fly likes copy/paste Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Reply 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
need help with a display method for an applet
Instructor's Solution to 4b
Australians: New HFSJ Book on eBay
Copy code to TextPad - no linefeeds??
Copying of column