• Post Reply Bookmark Topic Watch Topic
  • New Topic

JTree/JTable Drag and Drop  RSS feed

 
Swamy Vatti
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am implementing drag and drop using Jtable and JTree.
ie I can drag and drop(rearrange) nodes. I can drop into the same tree from a JTable. The problem is how can I differentiate or how can I know that the drag originated from a JTree/JTable.
I could successfuly implement rearranging the nodes. but the problem is with the table.
does anyone have ideas and help me!!!
 
pams
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have exactly the same problem. I have a JTree and JTable. I need to dragNdrop from/to JTree/JTable. Please gimme an advice of how to proceed. It would be great if any one can refer me to a useful reference/link having a good example of such kind.
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"pams" -

Welcome to the JavaRanch! Please adjust your displayed name to meet the
JavaRanch Naming Policy.
You can change it here.

Thanks! and welcome to the JavaRanch!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!