Event.Event

Event.Event

Class Overview | Class Members | This Package | All Packages

Syntax 1
public Event( Object target, long when, int id, int x, int y, int key, int modifiers, Object arg )
Parameters
target
the target component.
when
the time stamp.
id
the event type.
x
the x coordinate.
y
the y coordinate.
key
the key pressed in a keyboard event.
modifiers
the state of the modifier keys.
arg
the specified argument.
Description
Creates an instance of Event with the specified target component, time stamp, event type, x and y coordinates, keyboard key, state of the modifier keys, and argument.



Syntax 2
public Event( Object target, long when, int id, int x, int y, int key, int modifiers )
Parameters
target
the target component.
when
the time stamp.
id
the event type.
x
the x coordinate.
y
the y coordinate.
key
the key pressed in a keyboard event.
modifiers
the state of the modifier keys.
Description
Creates an instance of Event, with the specified target component, time stamp, event type, x and y coordinates, keyboard key, state of the modifier keys, and an argument set to null.



Syntax 3
public Event( Object target, int id, Object arg )
Parameters
target
the target component.
id
the event type.
arg
the specified argument.
Description
Creates an instance of Event with the specified target component, event type, and argument.