public static boolean isRightMouseButton(MouseEvent anEvent){
  return (anEvent.getModifiersEx() & InputEvent.BUTTON3_DOWN_MASK) > 0;
}

public static boolean isRightMouseButton ( MouseEvent anEvent ) { return ( anEvent . getModifiersEx ( ) & InputEvent . BUTTON3_DOWN_MASK ) > 0 ; }
replaces swingutilities # isrightmousebutton ( ) due to the fact that button3_mask = = event . meta_mask
