2

How can I add drag and drop support to a JTree using the Netbeans GUI editor? Just something simple, like rearranging the nodes in the tree.

Thanks

user489041
  • 27,916
  • 55
  • 135
  • 204
  • 1
    Possible duplicate of [Drag and Drop nodes in JTree](http://stackoverflow.com/questions/4588109/drag-and-drop-nodes-in-jtree) – Suma Dec 01 '15 at 12:29

1 Answers1

1

I don't think this is possible with the Netbeans editor, you're going to have to delve into the code to get this to work. I suggest reading the following as they should help greatly.

http://download.oracle.com/javase/tutorial/uiswing/dnd/intro.html

http://www.javaworld.com/javatips/jw-javatip97.html

jluzwick
  • 2,005
  • 1
  • 15
  • 23
  • Yes, this is what I had to do. I had to create some custom code. This link was especially helpful: http://www.coderanch.com/t/346509/GUI/java/JTree-drag-drop-inside-one – user489041 Feb 11 '11 at 20:00