aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes JTrees Drag and Drop Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JTrees Drag and Drop" Watch "JTrees Drag and Drop" New topic
Author

JTrees Drag and Drop

Joe Myn
Greenhorn

Joined: Oct 19, 2004
Posts: 25
Hello

I have a a problem in drag n drop
I have a JTree that displays data from an oracle database
I need to drag and drop items from the tree to a JTextArea.
I am new to drag and drop, any help would be appreciated.
Craig Wood
Ranch Hand

Joined: Jan 14, 2004
Posts: 1535
The java tutorial has a page on How to Use Drag and Drop and Data Transfer. It shows how to enable drag and copy on a JTree. Do you need to remove the node from the tree?
Joe Myn
Greenhorn

Joined: Oct 19, 2004
Posts: 25
I dont want to remove the node from the tree, but i want to expand the nodes into subtrees, and be able to Drag the contents of the nodes in the database directly from the JTree to the JTextArea.

Thanks,
Joe
Craig Wood
Ranch Hand

Joined: Jan 14, 2004
Posts: 1535
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JTrees Drag and Drop
 
Similar Threads
Drag and Drop from a tree view
Feedback: Info for SCJP Tiger beta
Drag-and-drop in J2EE
whoever taken SCWCD
Drag and drop of multiple items