• 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

Drag and Drop

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am having JList as DragSource and DropTarget. When i drag an object from one Jlist and drop that on other or same JList, then some times the mouseDragged is called continously even if the mouse is not dragged. what the problem is. can any one guide me.
 
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If the procedure executed when starting drag in your program consumes much time, then the program can�t detect that the user have dropped, when the user releases the mouse after a quick drag, so there are still mouseDragged(). So dragGestureRecognized() should not be coded to be time-consuming.
Hope that helpful!
 
Umashankar Arora
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello Jianping,
I have tried drag and drop with very simple transfer of string between two lists but still the problem exits. The mouseDragged is called continously and the selection in the list after that is difficult. after clicking an item many times it comes out of the mouseDragged and selection is possible. I am unable think what is problem
reply
    Bookmark Topic Watch Topic
  • New Topic