JavaFX: Reacting to Single, Double, and Triple Click
问题 I am trying to configure certain actions in response to number of mouse clicks. It seems to me that the single click and triple click get detected and applied. but the double click does not really work. I tried to do something like: if (doubleClick) else if (tripleClick) else if (singleClick). The order of checking did not help either, the action for the double click never gets triggered because that of the single click get triggered first. Any ideas on how to do this? 回答1: If you want to