JavaSwingStructure: Event sources


Event sources

AWT/beans listeners used in Swing

Listener

Event

Source type

Source implementations

Action

Action

any

ButtonModel

ComboBoxEditor

JComboBox, JTextField

JFileChooser

Timer

AbstractButton

(JColorChooser.createDialog, JComponent.registerKeyboardAction)

PropertyChange

PropertyChange

any

Action

TreeSelectionModel

TableColumn

UIDefaults, UIManager

(JComponent already by Component)

VetoableChange

PropertyChange

any

JComponent (only used in JInternalFrame)

Adjustment

Adjustment

Adjustable

JScrollBar

Item

Item

ItemSelectable

ButtonModel

AbstractButton, JComboBox

Swing listeners

Listener

Event

Source type

Source implementations

Ancestor

Ancestor

JComponent

JComponent

Menu

Menu

any

JMenu

MenuKey

MenuKey

Component

JMenuItem

MenuDragMouse

MenuDragMouse

Component

JMenuItem

PopupMenu

PopupMenu

any

(but documented to be JPopupMenu)

JPopupMenu, JComboBox(!)

InternalFrame

InternalFrame

JInternalFrame

JInternalFrame

UndoableEdit

UndoableEdit

any

Document, UndoableEditSupport

Change

Change

any

BoundedRangeModel, ButtonModel, SingleSelectionModel, SpinnerModel, ColorSelectionModel, Caret, Style

MenuSelectionManager, StyleContext, JViewport

JSlider, JProgressBar, AbstractButton, JTabbedPane, JSpinner

ListData

ListData

any

ListModel

ListSelection

ListSelection

any

ListSelectionModel

JList

CellEditor

ChangeEvent

any

CellEditor

TableModel

TableModel

TableModel

TableModel

TableColumnModel

TableColumnModel, Change, ListSelection

TableColumnModel

TableColumnModel (columnModelListener)

TreeWillExpand

TreeExpansion

any

(but documented as JTree)

JTree

TreeExpansion

TreeExpansion

any

(but documented as JTree)

JTree

TreeModel

TreeModel

any

TreeModel

TreeSelection

TreeSelection

any

TreeSelectionModel

JTree

Caret

Caret (abstract)

any

JTextComponent

Document

DocumentEvent (no EventObject)

(Document)

Document

HyperlinkListener

Hyperlink, HTMLFrameHyperlink

any

JEditorPane


(C) 2001-2009 Christian Kaufhold (swing@chka.de)