This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile 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
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