java.awt
public class MouseInfo extends Object
Since: 1.5
Method Summary | |
---|---|
static int | getNumberOfButtons()
Returns the number of mouse buttons, or -1 if no mouse is connected.
(mentioned in the 1.5 release notes)
|
static PointerInfo | getPointerInfo()
Returns a PointerInfo object containing information about the current
location of the mouse pointer
|
Returns: an integer number of buttons.
Throws: HeadlessException if the current GraphicsEnvironment is headless.
Returns: a PointerInfo object.
Throws: HeadlessException if the current GraphicsEnvironment is headless.