File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jtable mouse click behaviour

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