• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Problems with Drag and Drop

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,
I am writing an app where I am using Drag & Drop.
When I am dragging a tree node, the path is shown like this.
"Dragging from tree path = [Data, Geographic, US States]"
"Parent path = USA"
When I drop the tree node on some other node, this is happening.
"Removing the tree node"
"Dropping from tree path = [null, null, null]"
When I am drop the node, the node is removed from the original place.
But the Drop tree path is showing null. So, my tree node at the new
path is created as null DefaultMutableTreeNodes with no information in them.
Both the Drag & Drop tree path should have been the same for proper functioning of the program.
What can probably cause this problem?
Thanks in Advance,
Rudra
 
We can walk to school together. And we can both read this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic