• Post Reply Bookmark Topic Watch Topic
  • New Topic

Origin of a Drag Operation  RSS feed

 
Jeremy Hooie
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a JTable and a JTree which are both Drag and Drop enabled. When moving items from table cell to table cell I want to do different processing than moving items from the tree to the table. Is there anyway to determine the origin of the Drag operation? I tried the getSource() method for the event, but it returns a DropTargetDropEvent and not the Component where the Drag originated.
Thanks,
Jeremy
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!