• Post Reply Bookmark Topic Watch Topic
  • New Topic

ClipBoard  RSS feed

 
Anand Loni
Ranch Hand
Posts: 150
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I am working with JTree and Jpopup menu, this is not swing problem. When I press cut from popup I want to store my treenode into clipboard, I do not used clipboard untill now.

How to do this ? Its Urgent...

Regards,
Anand
 
Scott Selikoff
author
Bartender
Posts: 4093
21
Eclipse IDE Flex Google Web Toolkit
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What do you want to go to the clipboard? Something that can be cut and pasted outside your application? In that case you have to convert the structure to a string and export it to the clipboard.

Alternatively, if you want to copy a node object to another section in a tree, you essentially simulate your own clipboard. When someone copies/cuts, mark which node is selected, then when they paste perform a node copy.

Keep in mind that the notion of a clipboard is an abstraction, there's no hidden clipboard in your system.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!