Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Drag and Drop in JTextPane

Rohit Bhagwat
Ranch Hand
Posts: 205
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello friends, sir, madam

I am trying to perform drag and drop operations using java.awt.dnd package. In my case my drag source is JTextPane. When I select some text in the JTextPane and try to drag it, the selection disappears as when I click the selected text to drag it,the selection has gone. Can anyone please help as to how should I perform the drag operation from JTextPane using java.awt.dnd package ?

Please help !!
Waiting for your replies

Thanks and Regards
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic