Using drag-and-drop and trees, how can you select a subtree and drop it on another container? What do you use for transferable?

Davanum Srinivas

JavaWorld has an excellent article on Adding Drag and Drop to JTrees:


The article has a sample class that implements Transferable interface for your reference.