• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

ClipBoard

 
Ranch Hand
Posts: 150
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
author
Posts: 4335
39
jQuery Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
reply
    Bookmark Topic Watch Topic
  • New Topic