MouseEvent.button

Overview | Methods | Fields | This Package | All Packages

MouseEvent.button

Specifies which mouse button was pressed.

Syntax

public final int button;

Remarks

Possible values are constants defined in the MouseButton class. This value is MouseButton.NONE if no mouse button was pressed when the event was generated.