The Event Classes & Interfaces
Home ] Up ] History ] Why a New Event Model? ] Relationship Between Models ] The Java 1.1 Event Model ] AWT Event Hierarchy ] [ The Event Classes & Interfaces ] Swing Classes & Events ]

 

 

The events available in the Java 1.1+ model may be classified into a set of event classes.

Associated with each event class is a corresponding listener interface, containing a set of listener methods, and, for those listeners which have more than a single method, an associated adapter class.

Event Class

Type

Listener Interface Listener Methods Adapter Class
ActionEvent Semantic ActionListener actionPerformed()  
AdjustmentEvent Semantic AdjustmentListener adjustmentValueChanged()  
ComponentEvent Low-level ComponentListener componentHidden()
componentMoved()
componentResized()
componentShown()
ComponentAdapter
ContainerEvent Low-level ContainerListener componentAdded()
componentRemoved()
ContainerAdapter
FocusEvent Low-level FocusListener focusGained()
focusLost()
FocusAdapter
ItemEvent Semantic ItemListener itemStateChanged()  
KeyEvent Low-level KeyListener keyPressed()
keyReleased()
keyTyped()
KeyAdapter
MouseEvent Low-level MouseListener mouseClicked()
mouseEntered()
mouseExited()
mousePressed()
mouseReleased()
MouseAdapter
MouseMotionListener mouseDragged()
mouseMoved()
MouseMotionAdapter
MouseWheelEvent Low-Level MouseWheelListener mouseWheelMoved()  
TextEvent Semantic TextListener textValueChanged()  
WindowEvent Low-level WindowListener windowActivated()
windowClosed()
windowClosing()
windowDeactivated()
windowDeiconified()
windowIconified()
windowOpened()
WindowAdapter
WindowFocusListener windowGainedFocus()
windowLostFocus()
WindowStateListener windowStateChanged()

Note that all low-level events extend from ComponentEvent.  All other events are classified as semantic events.

 

This page was last modified on 02 October, 2007