charva.awt.event
Class MouseEvent
An event which encapsulates information about a mouse-click.
ACTION_PERFORMED , ADJUSTMENT_EVENT , FOCUS_GAINED , FOCUS_LOST , GARBAGE_COLLECTION , INVOCATION_EVENT , ITEM_STATE_CHANGED , KEY_PRESSED , KEY_TYPED , LIST_SELECTION , MOUSE_EVENT , PAINT_EVENT , RESERVED_ID_MAX , SCROLL_EVENT , SYNC_EVENT , WINDOW_CLOSING , WINDOW_OPENED |
BUTTON1
public static final int BUTTON1
BUTTON2
public static final int BUTTON2
BUTTON3
public static final int BUTTON3
MOUSE_CLICKED
public static final int MOUSE_CLICKED
MOUSE_PRESSED
public static final int MOUSE_PRESSED
MOUSE_RELEASED
public static final int MOUSE_RELEASED
button
protected int button
Specified which button was pressed, released or clicked.
clickcount
protected int clickcount
modifiers
protected int modifiers
Specifies whether the button was pressed, released or clicked.
MouseEvent
public MouseEvent(Component source_,
int modifiers_,
int x_,
int y_,
int clickcount_,
int button_)
getButton
public int getButton()
getClickCount
public int getClickCount()
getModifiers
public int getModifiers()
toString
public String toString()