Events are generate by Swing components corresponding to user actions.
Event types:
User clicks a button, presses Return while typing in a text field, or chooses a menu item
User close a frame
User presses a mouse button while the cursor is over a component
User moves the mouse over a component
Component becomes visible
Component gets the keyboard focus
Table or list selection changes