This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
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


Win a copy of Building Microservices this week in the Design forum!
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’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: JTrees Drag and Drop
 
jQuery in Action, 3rd edition