aspose file tools
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

Win a copy of OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP forum!
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"
Don't get me started about those stupid light bulbs.
subject: Drag and Drop in JTree