Re: ListSelectionListener Responds to Mouse Button Up and Down



On Mon, 16 Jul 2007 15:42:50 -0400, Hal Vaughan
<hal@xxxxxxxxxxxxxxxxxxxx> wrote, quoted or indirectly quoted someone
who said :

I can't find anything in the ListSelectionEvent that lets me check to see if
the event is from a mouse button down or up or a mouse click and I haven't
found a reference to this happening. I haven't had this problem before, so
I could see how it's related to allowing multiple intervals, but I'm still
not clear on what is going on.

try dumping

ListSelectionEvent.getValueIsAdjusting()
Returns whether or not this is one in a series of multiple
events, where changes are still being made.


see if that helps you figure out what is going on.
--
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com
.