• Post Reply Bookmark Topic Watch Topic
  • New Topic

Drawing lines in between nodes of two JTrees

 
Chris Verret
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
In my application i have two JTrees, one on the left hand side, and one on the right. I need to connect the nodes by drawing lines with the mouse. Suppose i click on any node of left JTree and the drag towards any node on the right Jtree. A line should be drawn showing the two nodes connected. Also later on i should be able to delete any of them (drawn lines) say by clicking any line and then clicking a delete button. Can anybody help me? Has anyone been able to do this before?
Thanks,
Chris
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!