public class ActionEvent extends EventObject
Constructor and Description |
---|
ActionEvent(Object source)
Constructs an
ActionEvent object. |
Modifier and Type | Method and Description |
---|---|
Object |
getSource() |
toString
public ActionEvent(Object source)
ActionEvent
object.source
- The object that originated the eventpublic Object getSource()
If the source of the action was a shortcut the return type will be a
ShortcutSource
.
getSource
in class EventObject