swt - get max time between first and second click for doubleclick event

StackOverflow https://stackoverflow.com/questions/22915416

  •  29-06-2023
  •  | 
  •  

Вопрос

Hello fellow Stackoverflownians,

I am in need of your assistance: I am developing an Eclipse RCP application, and am having issues with understanding how to get the maximum time allowed between clicks to constitute a double click.

How can I get the OS time needed until a second click to constitute a "double click"?

Or maybe this can be attained via SWT?

I've seen the AWT version here.

Integer timerinterval = (Integer) Toolkit.getDefaultToolkit().getDesktopProperty("awt.multiClickInterval");

Thanks!

Это было полезно?

Решение

As pointed out in the comments, the AWT solution will suffice.

Thanks guys!

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top