Provides for events fired by Swing components. It contains event classes and corresponding event listener interfaces for events fired by Swing components in addition to those events in the
Note: Most of the Swing API is not thread safe. For details, see Concurrency in Swing, a section in The Java Tutorial.
Related DocumentationFor overviews, tutorials, examples, guides, and tool documentation, please see:
- Writing Event Listeners, a section in The Java Tutorial
Interface Summary Interface Description AncestorListenerAncestorListener Interface to support notification when changes occur to a JComponent or one of its ancestors. CaretListenerListener for changes in the caret position of a text component. CellEditorListenerCellEditorListener defines the interface for an object that listens to changes in a CellEditor ChangeListenerDefines an object which listens for ChangeEvents. DocumentEventInterface for document change notifications. DocumentEvent.ElementChangeDescribes changes made to a specific element. DocumentListenerInterface for an observer to register to receive notifications of changes to a text document. HyperlinkListenerHyperlinkListener InternalFrameListenerThe listener interface for receiving internal frame events. ListDataListenerListDataListener ListSelectionListenerThe listener that's notified when a lists selection value changes. MenuDragMouseListenerDefines a menu mouse-drag listener. MenuKeyListenerMenuKeyListener MenuListenerDefines a listener for menu events. MouseInputListenerA listener implementing all the methods in both the
PopupMenuListenerA popup menu listener RowSorterListener
RowSorterListeners are notified of changes to a
TableColumnModelListenerTableColumnModelListener defines the interface for an object that listens to changes in a TableColumnModel. TableModelListenerTableModelListener defines the interface for an object that listens to changes in a TableModel. TreeExpansionListenerThe listener that's notified when a tree expands or collapses a node. TreeModelListenerDefines the interface for an object that listens to changes in a TreeModel. TreeSelectionListenerThe listener that's notified when the selection in a TreeSelectionModel changes. TreeWillExpandListenerThe listener that's notified when a tree expands or collapses a node. UndoableEditListenerInterface implemented by a class interested in hearing about undoable operations.
Class Summary Class Description AncestorEventAn event reported to a child component that originated from an ancestor in the component hierarchy. CaretEventCaretEvent is used to notify interested parties that the text caret has changed in the event source. ChangeEventChangeEvent is used to notify interested parties that state has changed in the event source. DocumentEvent.EventTypeEnumeration for document event types EventListenerListA class that holds a list of EventListeners. HyperlinkEventHyperlinkEvent is used to notify interested parties that something has happened with respect to a hypertext link. HyperlinkEvent.EventTypeDefines the ENTERED, EXITED, and ACTIVATED event types, along with their string representations, returned by toString(). InternalFrameAdapterAn abstract adapter class for receiving internal frame events. InternalFrameEventAn
AWTEventthat adds support for
JInternalFrameobjects as the event source.
ListDataEventDefines an event that encapsulates changes to a list. ListSelectionEventAn event that characterizes a change in selection. MenuDragMouseEventMenuDragMouseEvent is used to notify interested parties that the menu element has received a MouseEvent forwarded to it under drag conditions. MenuEventMenuEvent is used to notify interested parties that the menu which is the event source has been posted, selected, or canceled. MenuKeyEventMenuKeyEvent is used to notify interested parties that the menu element has received a KeyEvent forwarded to it in a menu tree. MouseInputAdapterAn empty implementation of the
MouseInputListenerinterface, provided as a convenience to simplify the task of creating listeners, by extending and implementing only the methods of interest.
PopupMenuEventPopupMenuEvent only contains the source of the event which is the JPopupMenu sending the event RowSorterEvent
RowSorterEventprovides notification of changes to a
SwingPropertyChangeSupportThis subclass of
java.beans.PropertyChangeSupportis almost identical in functionality.
TableColumnModelEventTableColumnModelEvent is used to notify listeners that a table column model has changed, such as a column was added, removed, or moved. TableModelEventTableModelEvent is used to notify listeners that a table model has changed. TreeExpansionEventAn event used to identify a single path in a tree. TreeModelEventEncapsulates information describing changes to a tree model, and used to notify tree model listeners of the change. TreeSelectionEventAn event that characterizes a change in the current selection. UndoableEditEventAn event indicating that an operation which can be undone has occurred.
Enum Summary Enum Description RowSorterEvent.TypeEnumeration of the types of