No more mouse clicks

I have a JTable with a mouseListener added. The problem is that when I detect a double click I don't want to get more clicks until I decide. But I don't know how to do it. I've try with consume but it didn't work.Thanks.
[246 byte] By [sasato] at [2007-9-26 8:17:29]
# 1
The clicks are going to happen, but you can ignor them. When you get a click set a flag and start a timer, if you get any more click before the timer, then ignor them. Once the timer goes off, reset the flag.
morgalr at 2007-7-1 18:48:26 > top of Java-index,Desktop,Core GUI APIs...
# 2
When I detect double click, I start a process and do not return until that's finished. But I don't know why, if I'm fast enough to double click another row before the process start. So when the first process finished, it starts the second.
sasato at 2007-7-1 18:48:26 > top of Java-index,Desktop,Core GUI APIs...
# 3

Use a generic mouse listener for all of your objects. Each click will be routed through the same routine, so you can choose to ignore them on an idividual basis.

Right now you have multiple listeners, get rid of all of your listeners and implement a single mouse listener that will "broker" (notify the approprate object of the appropriate event) your mouse events.

morgalr at 2007-7-1 18:48:26 > top of Java-index,Desktop,Core GUI APIs...