• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

jtable mouse click behaviour

 
Ranch Hand
Posts: 1282
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i'm experimenting and at a given point i'v this code:

i notice output appears twice: on mouse down once, and again on mouse up
should this act this way?
TiA
 
Ranch Hand
Posts: 1535
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
should this act this way?
Yes.
A ListSelectionListener is most interested in tracking all changes in list
selections: de-selection and selection. If you want to wait until all the
flurry of activity subsides before asking what the new selection is you
can use the ListSelectionEvent method getValueIsAdjusting.

[ September 14, 2006: Message edited by: Craig Wood ]
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!