In most cases a double clicke shoud be checked as if (e.getClickCount() >= 2) -  not  ' == 2'
That is because it is too dificult to hit button precisely 2 times. Very often we hit 3 and even more.