This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes Drag N drop in JTree Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Drag N drop in JTree" Watch "Drag N drop in JTree" New topic
Author

Drag N drop in JTree

Savvy Makol
Greenhorn

Joined: Jun 03, 2003
Posts: 6
I have the problem of creating a JTree and then add he functionality of dragging a node and adding it to other node by dropping it on the other node.Its the same funtionality as we see in windows explorer also.Kindly help how to implement this.
Charles Hasegawa
Ranch Hand

Joined: May 22, 2003
Posts: 117
Here's a good place to start :
http://www.javaworld.com/javaworld/jw-03-1999/jw-03-dragndrop.html
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24183
    
  34

Here's one explicitly about DnD in JTrees; I learned how to do it from this article.


[Jess in Action][AskingGoodQuestions]
 
jQuery in Action, 2nd edition
 
subject: Drag N drop in JTree
 
Similar Threads
Updating a JTree
JTree with checkbox
JTree not updating
JTree
JTree