< prev index next >

src/java.desktop/share/classes/java/awt/MouseInfo.java

Print this page

        

@@ -111,13 +111,16 @@
     }
 
     /**
      * Returns the number of buttons on the mouse.
      * On systems without a mouse, returns <code>-1</code>.
+     * The number of buttons is obtained by calling
+     * Toolkit.getDesktopProperty("awt.mouse.numButtons").
      *
      * @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 {
         if (GraphicsEnvironment.isHeadless()) {
             throw new HeadlessException();
< prev index next >