Two Laptop Bag*
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
Author

Drag and Drop in JTree

Murali Obla
Ranch Hand

Joined: Nov 18, 2001
Posts: 40
Hi,

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,
Murali


"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"
 
GeeCON Prague 2014
 
subject: Drag and Drop in JTree