Java : detect triple-click without firing double-click

前端 未结 7 969
旧巷少年郎
旧巷少年郎 2021-01-19 17:40

I have a JTable in which I want to call a function when a cell is double-clicked and call another function when the cell is triple-clicked.

When the cell is triple-c

7条回答
  •  面向向阳花
    2021-01-19 18:38

    It's exactly the same problem as detecting double-click without firing single click. You have to delay firing an event until you're sure there isn't a following click.

提交回复
热议问题