|
|
Start of Tutorial > Start of Trail > Start of Lesson |
Search
Feedback Form |
In the table that follows, the first column gives the name of the listener interface, with either a link to the tutorial page that discusses the listener or, if the tutorial doesn't discuss the listener, a link to the API docs. The second column names the corresponding adapter class, if any. (For a discussion of using adapters, see Using Adapters and Inner Classes to Handle Events.) The third column lists the methods that the listener interface contains and shows the type of the event object passed into the method. Typically, the listener, the adapter, and the event type have the same name prefix, but this is not always the case.To see which Swing components can fire which kinds of events, see Listeners Supported by Swing Components.
Listener Interface Adapter Class Listener Methods ActionListenernone actionPerformed(ActionEvent)AncestorListenernone ancestorAdded(AncestorEvent)
ancestorMoved(AncestorEvent)
ancestorRemoved(AncestorEvent)CaretListenernone caretUpdate(CaretEvent)CellEditorListenernone editingStopped(ChangeEvent)
editingCanceled(ChangeEvent)ChangeListenernone stateChanged(ChangeEvent)ComponentListenerComponentAdaptercomponentHidden(ComponentEvent)
componentMoved(ComponentEvent)
componentResized(ComponentEvent)
componentShown(ComponentEvent)ContainerListenerContainerAdaptercomponentAdded(ContainerEvent)
componentRemoved(ContainerEvent)DocumentListenernone changedUpdate(DocumentEvent)
insertUpdate(DocumentEvent)
removeUpdate(DocumentEvent)ExceptionListener![]()
(introduced in 1.4)none exceptionThrown(Exception)FocusListenerFocusAdapterfocusGained(FocusEvent)
focusLost(FocusEvent)HierarchyBoundsListener![]()
(introduced in 1.3)HierarchyBoundsAdapterancestorMoved(HierarchyEvent)
ancestorResized(HierarchyEvent)HierarchyListener![]()
(introduced in 1.3)none hierarchyChanged(HierarchyEvent)HyperlinkListenernone hyperlinkUpdate(HyperlinkEvent)InputMethodListenernone caretPositionChanged(InputMethodEvent)
inputMethodTextChanged(InputMethodEvent)InternalFrameListenerInternalFrameAdapterinternalFrameActivated(InternalFrameEvent)
internalFrameClosed(InternalFrameEvent)
internalFrameClosing(InternalFrameEvent)
internalFrameDeactivated(InternalFrameEvent)
internalFrameDeiconified(InternalFrameEvent)
internalFrameIconified(InternalFrameEvent)
internalFrameOpened(InternalFrameEvent)ItemListenernone itemStateChanged(ItemEvent)KeyListenerKeyAdapterkeyPressed(KeyEvent)
keyReleased(KeyEvent)
keyTyped(KeyEvent)ListDataListenernone contentsChanged(ListDataEvent)
intervalAdded(ListDataEvent)
intervalRemoved(ListDataEvent)ListSelectionListenernone valueChanged(ListSelectionEvent)MenuDragMouseListenernone menuDragMouseDragged(MenuDragMouseEvent)
menuDragMouseEntered(MenuDragMouseEvent)
menuDragMouseExited(MenuDragMouseEvent)
menuDragMouseReleased(MenuDragMouseEvent)MenuKeyListenernone menuKeyPressed(MenuKeyEvent)
menuKeyReleased(MenuKeyEvent)
menuKeyTyped(MenuKeyEvent)MenuListenernone menuCanceled(MenuEvent)
menuDeselected(MenuEvent)
menuSelected(MenuEvent)MouseInputListener(extends MouseListener and MouseMotionListenerMouseInputAdaptermouseClicked(MouseEvent)
mouseEntered(MouseEvent)
mouseExited(MouseEvent)
mousePressed(MouseEvent)
mouseReleased(MouseEvent)
mouseDragged(MouseEvent)
mouseMoved(MouseEvent)MouseListenerMouseAdapter,MouseInputAdaptermouseClicked(MouseEvent)
mouseEntered(MouseEvent)
mouseExited(MouseEvent)
mousePressed(MouseEvent)
mouseReleased(MouseEvent)MouseMotionListenerMouseMotionAdapter,MouseInputAdaptermouseDragged(MouseEvent)
mouseMoved(MouseEvent)MouseWheelListener
(introduced in 1.4)none mouseWheelMoved(MouseWheelEvent)PopupMenuListenernone popupMenuCanceled(PopupMenuEvent)
popupMenuWillBecomeInvisible(PopupMenuEvent)
popupMenuWillBecomeVisible(PopupMenuEvent)PropertyChangeListenernone propertyChange(PropertyChangeEvent)TableColumnModelListenernone columnAdded(TableColumnModelEvent)
columnMoved(TableColumnModelEvent)
columnRemoved(TableColumnModelEvent)
columnMarginChanged(ChangeEvent)
columnSelectionChanged(ListSelectionEvent)TableModelListenernone tableChanged(TableModelEvent)TreeExpansionListenernone treeCollapsed(TreeExpansionEvent)
treeExpanded(TreeExpansionEvent)TreeModelListenernone treeNodesChanged(TreeModelEvent)
treeNodesInserted(TreeModelEvent)
treeNodesRemoved(TreeModelEvent)
treeStructureChanged(TreeModelEvent)TreeSelectionListenernone valueChanged(TreeSelectionEvent)TreeWillExpandListenernone treeWillCollapse(TreeExpansionEvent)
treeWillExpand(TreeExpansionEvent)UndoableEditListenernone undoableEditHappened(UndoableEditEvent)VetoableChangeListenernone vetoableChange(PropertyChangeEvent)WindowFocusListener
(introduced in 1.4)WindowAdapterwindowGainedFocus(WindowEvent)
windowLostFocus(WindowEvent)WindowListenerWindowAdapterwindowActivated(WindowEvent)
windowClosed(WindowEvent)
windowClosing(WindowEvent)
windowDeactivated(WindowEvent)
windowDeiconified(WindowEvent)
windowIconified(WindowEvent)
windowOpened(WindowEvent)WindowStateListener
(introduced in 1.4)WindowAdapterwindowStateChanged(WindowEvent)
|
|
Start of Tutorial > Start of Trail > Start of Lesson |
Search
Feedback Form |
Copyright 1995-2004 Sun Microsystems, Inc. All rights reserved.