Showing posts with label InputEvent class. Show all posts
Showing posts with label InputEvent class. Show all posts

Monday, 3 February 2014

EVENT CLASSES:The InputEvent Class

The abstract class InputEvent is a subclass of ComponentEvent...........

The InputEvent Class

The abstract class InputEvent is a subclass of ComponentEvent and is the superclass for component input events. Its subclasses are KeyEvent andMouseEvent.InputEvent defines several integer constants that represent any modifiers, such as the control key being pressed, that might be associated with the event.

The InputEvent class defined the following eight values to represent the modifiers:

ALT_MASK 
ALT_GRAPH_MASK 
BUTTON2_MASK 
BUTTON3_MASK 
BUTTON1_MASK 
CTRL_MASK
META_MASK
SHIFT_MASK