This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line!
See this thread for details.
Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jtable mouse click behaviour

 
miguel lisboa
Ranch Hand
Posts: 1281
  • 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
 
Craig Wood
Ranch Hand
Pie
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