public static boolean patchClickCount(final MouseEvent e){
  if (e.getClickCount() != 1 && e.getButton() > 3) {
    ReflectionUtil.setField(MouseEvent.class,e,int.class,"clickCount",1);
  }
  return false;
}

public static boolean patchClickCount ( final MouseEvent e ) { if ( e . getClickCount ( ) != 1 && e . getButton ( ) > 3 ) { ReflectionUtil . setField ( MouseEvent . class , e , int . class , "clickCount" , 1 ) ; } return false ; }
this method patches event if it concerns side buttons like 4 ( backward ) or 5 ( forward ) and it ' s not single - click event . we won ' t support double - click for side buttons . also some jdk bugs produce zero - click events for side buttons .
