Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization 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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic