code: public static Integer getSystemDoubleClickTimeMs() {
      Integer DEFAULT_INTERVAL_MS = 500;
      Toolkit t = Toolkit.getDefaultToolkit();
  
      if (t == null) {
        return DEFAULT_INTERVAL_MS;
      }
  
      Object o = t.getDesktopProperty("awt.multiClickInterval");
      if (o == null) {
        return DEFAULT_INTERVAL_MS;
      }
  
      return (Integer) o;
    }
docs: Returns the platform double click timeout, that is the time that separates two clicks treated
  as a double click from two clicks treated as two single clicks.