Class NewtClickTimeoutWorkaround


  • public class NewtClickTimeoutWorkaround
    extends Object
    A creative workaround for changing the NEWT click timeout, which is hard- coded to 300ms and not straightforward to change, even using reflection.

    Like in AWT/Swing, NEWT's click timeout is used for detecting multi-clicks. Unlike in AWT/Swing, it is also used to decide whether a PRESS+RELEASE counts as a CLICK.

    Author:
    hogye
    • Constructor Detail

      • NewtClickTimeoutWorkaround

        public NewtClickTimeoutWorkaround()
    • Method Detail

      • attachNewtClickTimeoutWorkaround

        public static Disposable attachNewtClickTimeoutWorkaround​(com.jogamp.newt.Window window,
                                                                  long newTimeout_MILLIS)