Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Drag N drop in JTree

 
Savvy Makol
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 117
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Sheriff
Posts: 24213
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here's one explicitly about DnD in JTrees; I learned how to do it from this article.
 
Don't sweat petty things, or pet sweaty things. But cuddle this tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!