# HG changeset patch # User ssadetsky # Date 1428588595 -14400 # Node ID 0a9513d4c1bbb534ee4b6e786f0d81af4e1b5c41 # Parent 9cc90ad7cf9ad4b01a2ca4b6337404e8a1f3e823 7081580: Specification for MouseInfo.getNumberOfButtons() doesn't contain info about "awt.mouse.numButtons" Reviewed-by: serb, ant diff -r 9cc90ad7cf9a -r 0a9513d4c1bb jdk/src/java.desktop/share/classes/java/awt/MouseInfo.java --- a/jdk/src/java.desktop/share/classes/java/awt/MouseInfo.java Thu Apr 09 17:41:08 2015 +0400 +++ b/jdk/src/java.desktop/share/classes/java/awt/MouseInfo.java Thu Apr 09 18:09:55 2015 +0400 @@ -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 {