This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes Drag and Drop in JTextPane Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Reply Bookmark "Drag and Drop in JTextPane" Watch "Drag and Drop in JTextPane" New topic
Author

Drag and Drop in JTextPane

Rohit Bhagwat
Ranch Hand

Joined: Dec 19, 2004
Posts: 205
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
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Drag and Drop in JTextPane
 
Similar Threads
dhtml movers ?
Drag and drop is only in java.awt.dnd?
Drag and drop in JTextPane
Drag and Drop ....and move again ?
dragging Jlabel