Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP 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
Rohit
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic