File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Swing / AWT / SWT and the fly likes Drag and 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 and Drop in JTree" Watch "Drag and Drop in JTree" New topic

Drag and Drop in JTree

Murali Obla
Ranch Hand

Joined: Nov 18, 2001
Posts: 40

How to make JTree as Drag and Drop component?.I am generating a Tree using DefaultMutableTreeNode class.I want to drag a node from the tree and place(drop)it into a JTextArea.How do I do that?
Please help me,
Thanks in advance,

"Excellence is never an accident; it is always the result of high intention, sincere effort, intelligent direction, skillful execution, and the vision to see obstacles as opportunities"
I agree. Here's the link:
subject: Drag and Drop in JTree
jQuery in Action, 3rd edition