Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

how to drag a table and drop it on a tree in java  RSS feed

 
Ajay KumarR
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Friends,

I am new to Swing and i have a query - Is it possible to drag a JTable and drop it on a JTree in java.I can drag and drop in Jtree but cant drag JTable into JTree. It is a urgent requirement. Pl Help if you have any ideas for this.

Thanks and Regards,
Ajay
 
Rob Spoor
Sheriff
Posts: 20893
81
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ajay KumarR wrote:Hi Is it possible to drag a JTable and drop it on a JTree in java.I can drag and drop in Jtree but cant drag JTable into JTree.

You want to drag and drop an entire JTable onto a JTree? What should that lead to, a JTable as one leaf in the JTree?

It is a urgent requirement.

http://faq.javaranch.com/java/EaseUp
 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
..and welcome to the Ranch
 
Ajay KumarR
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Sir,
Thanks for the Reply Sir The Requirement is to Drag the JTable to Jtree and draged Jtable(Records) should be deleted in Jtable and stored in JTree.In this example if we drag Table 01 from Jtable and drop it in JTree,then Table 01 should be deleted and should be stored under Parent in JTree.

Example:

JTable JTree


Table 01 Parent
Table 02 Child1
Table 03


Thanks and Regards,
Ajay
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!