This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

copy/paste  RSS feed

 
glenn lee
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 580
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!