Is it possible to disable mouse clicks temporarily and enable it again when needed ? If so, how ? Thanks, Jennifer [ June 13, 2002: Message edited by: Jennifer Wallace ]
I think you could do it if you are implementing the MouseListener interface. In the MouseClicked method you could check a boolean before actually performing any action. When you want to disable or enable the action change the state of that boolean.
Thanks Timothy ! Straight solution. I was using the mouselistener interface. But was toying around with the consume() method of InputEvent. But this is simple enough.
Every plan is a little cooler if you have a blimp. And a tiny ad.
a bit of art, as a gift, that will fit in a stocking