aspose file tools*
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
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: 24184
    
  34

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


[Jess in Action][AskingGoodQuestions]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Drag N drop in JTree