--- old/src/java.desktop/share/classes/java/awt/MouseInfo.java 2015-03-16 12:42:48.789208600 +0300 +++ new/src/java.desktop/share/classes/java/awt/MouseInfo.java 2015-03-16 12:42:48.280106800 +0300 @@ -113,9 +113,13 @@ /** * Returns the number of buttons on the mouse. * On systems without a mouse, returns -1. + * The number of buttons is obtained from the AWT Toolkit + * by requesting the {@code "awt.mouse.numButtons"} desktop property + * which is set by the underlying native platform. * * @exception HeadlessException if GraphicsEnvironment.isHeadless() returns true * @return number of buttons on the mouse + * @see Toolkit#getDesktopProperty * @since 1.5 */ public static int getNumberOfButtons() throws HeadlessException {