Events & Actions In Swing
Swing uses the JDK 1.1 delegate event model, but adds a very useful device with the javax.swing.AbstractAction class.
- implements the javax.swing.Action interface
-
- allows users to tie events to a single object
-
Swing also adds to the core JDK 1.1 event model with the
javax.swing.event.* package. There are several dozen events, including:
TreeExpansionEvent
TreeModelEvent
TreeSelectionEvent
ChangeEvent