Help coderanch get a
new server
by contributing to the fundraiser
  • 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
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

drag and drop DND click, then move??

 
Ranch Hand
Posts: 178
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am developing a Java application in 1.5 that utilizes drag and drop to move data between two JLists. My question: why is there a delay in moving the items? I need to first click on the item, then click and drag it to the other list. This behavior isn't intuitive; I wouldn't expect to first have to select the item, then click again to move it. I expect to be able to click and drag the item in one movement. I'm sure I'm just missing something. Can anyone please explain?

Code follows. If you compile and run, you should be able to reproduce the behavior I see.

Thanks in advance!



And the TransferHandler:
 
reply
    Bookmark Topic Watch Topic
  • New Topic