Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Facing problems with setting value on the Clipboard...  RSS feed

 
anita Py
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I am facing some problem wrt capturing text. Let me try to explain.
I have a Jlist whose values can be re-ordered. The value that is selected currently is being dragged. and on dragging the selection should be displayed appropriately in the clipboard field which is visible in the right corner of the cursor.

Can anybody please help me with how to set the value in the clipboard.




 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Toolkit.getDefaultToolkit().getSystemClipboard().setContents(...)
 
anita Py
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

May be i dint make my self clear.

What i basically want is that the value which is being dragged say "XXX" is supposed to be displayed just below the cursor.

Please have a look at the attachment, that should be more helpful i guess..

In my previous post, i was assuming that when drag and drop is being handled, the small rectangular shape that appears below the mouse pointer is the clipboard.
Hence it might have been ambiguous..

Cursor-Text.jpeg
[Thumbnail for Cursor-Text.jpeg]
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!