Modifier and Type | Method and Description |
---|---|
static int |
getNumberOfButtons()
Returns the number of mouse buttons, or -1 if no mouse is connected.
|
static PointerInfo |
getPointerInfo()
Returns a PointerInfo object containing information about the current
location of the mouse pointer
|
public static PointerInfo getPointerInfo() throws HeadlessException
HeadlessException
- if the current GraphicsEnvironment is headless.public static int getNumberOfButtons() throws HeadlessException
HeadlessException
- if the current GraphicsEnvironment is headless.