question: public static boolean isMiddleMouseButton ( MouseEvent anEvent ) { return ( anEvent . getModifiersEx ( ) & InputEvent . BUTTON2_DOWN_MASK ) > 0 ; }
target:  Replaces SwingUtilities#isMiddleMouseButton() due to the fact that BUTTON2_MASK == Event.ALT_MASK