Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

JTree multiselect Drag and Drop

Status
Not open for further replies.

advait75

Programmer
Oct 5, 2002
48
IN
Hi,

I have a Panel with a JTree. I need to be able to do the following -
1. Multiselect nodes or leaves. However these nodes / leaves must be of the same type only.
2. User should be allowed to drag and drop all selected nodes / leaves. Through certain rules, I will control where these nodes / leaves can be dropped.

Thanks and regards,
Advait Pandit
 
I think what Dian meant was that as a rule, we don't write code for people that just state their requirements and expect a code solution.

Perhaps you could try google for some tutorials on DnD data transfer, then perhaps come back with a more specific problem ?


--------------------------------------------------
Free Java/J2EE Database Connection Pooling Software
 
Maybe I didn't state what I needed clearly. I just want to know if someone can point me to a tutorial or something. I don't expect anyone to write code for me.
I looked on Google but couldnt find a solution to multiselect DnD.


 
At no point in your post did you state you wanted tutorial links !

Anyway, google for "drag drop jtree" and "multi select jtree" - then combine your knowledge to produce your desired results. There are LOADS of examples of DnD out there, like :
--------------------------------------------------
Free Java/J2EE Database Connection Pooling Software
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top