当前位置: 首页 > 工具软件 > JTimer-java > 使用案例 >

Java Swing 探索(二)Source-Event-Listener-Adapter 对照表

令狐声
2023-12-01

Source

Event

Event Listener

AbstractButton

(JButton,JToggleButton,

JCheckBox,JRadioButton

ActionEvent

ChangEvent

ItemEvent

ActionListener

ChangeListener

ItemListener

JTextField

JPasswordField

ActionEvent

CaretEvent

DocumentEvent

UndoableEvent

ActionListener

CaretListener

DocumentListener

UndoableListener

JTextArea

CaretEvent

DocumentEvent

UndoableEvent

CaretListener

DocumentListener

UndoableListener

JTextPane

JEditorPane

CaretEvent

DocumentEvent

UndoableEvent

HyperlinkEvent

CaretListener

DocumentListener

UndoableListener

HyperlinkListener

JComboBox

ActionEvent

ItemEvent

ActionListener

ItemListener

JList

ListSelectionEvent

ListDataEvent

ListSelectionListener

ListDataListener

JFileChooser

ActionEvent

ActionListener

JMenuItem

ActionEvent

ChangeEvent

ItemEvent

MenuKeyEvent

MenuDragMouseEvent

ActionListener

ChangeListener

ItemListener

MenuKeyListener

MenuDragMouseListener

JMenu

MenuEvent

MenuListener

JPopupMenu

PopupMenuEvent

PopupMenuListener

JProgressBar

ChangeEvent

ChangeListener

JSlider

ChangeEvent

ChangeListener

JScrollBar

AdjustmentEvent

AdjustmentListener

JTable

ListSelectionEvent

TableModeEvent

TableColumModelEvent

CellEditorEvent

ListSelectionListener

TableModeListener

TableColumModelListener

CellEditorListener

JTabbedPane

ChangeEvent

ChangeListener

JTree

TreeSelectionEvent

TreeExpansionEvent

TreeWillExpandEvent

TreeModeEvent

TreeSelectionListener

TreeExpansionEvent

TreeWillExpandListener

TreeModeListener

JTimer

ActionEvent

ActionListener

 

Event

Listener

ComponentEvent

ComponentListener

ContainerEvent

ContainerListener

FocusEvent

FocusListener

KeyEvent

KeyListener

MouseEvent

MouseListener

MouseMotionEvent

MouseMotionListener

WindowEvent

WindowListener

 

Swing EventListener

Method

CaretListener

caretUpdate(CaretEvent e)

CellEditorListener

editingCanceled(ChangeEvent e)

editingStopped(ChangeEvent e)

ChangeListener

stateChanged(ChangeEvent e)

DocumentListener

changedUpdate(DocumentEvent e)

insertUpdate(DocumentEvent e)

removeUpdate(DocumentEvent e)

HyperlinkListener

hyperlinkUpdate(HyperlinkEvent e)

ListDataListener

contentsChanged(ListDataEvent e)

intervalAdded(ListDataEvent e)

intervalRemoved(ListDataEvent e)

ListSelectionListener

valueChanged(ListSelectionEvent e)

MenuDragMouseListener

menuDragMouseDragged(MenuDragMouseEvent e)

menuDragMouseEntered(MenuDragMouseEvent e)

menuDragMouseExited(MenuDragMouseEvent e)

menuDragMouseReleased(MenuDragMouseEvent e)

MenuKeyListener

menuKeyPressed(MenuKeyEvent e)

menuKeyReleased(MenuKeyEvent e)

menuKeyTyped(MenuKeyEvent e)

MenuListener

menuCanceled(MenuEvent e)

menuDeselected(MenuEvent e)

menuSelected(MenuEvent e)

PopupMenuListener

popupMenuCanceled(PopupMenuEvent e)

popupMenuWillBecomeInvisible(PopupMenuEvent e)

popupMenuWillBecomeVisible(PopupMenuEvent e)

TableColumnModelListener

columnAdded(TableColumnModelEvent e)

columnMarginChaged(ChangeEvent e)

columnMovedTableColumnModelEvent e)

columnRemoved(TAbleColumnModelEvent e)

columnSelectionChanged(ListSelectionEvent e)

TableModelListener

tableChanged(TableModelEvent e)

TreeExpansionListener

treeCollapsed(TreeExpansionEvent e)

treeExpanded(TreeExpansionEvent e)

TreeModelListener

treeNodesChanged(TreeModelEvent e)

treeNodesInserted(TreeModelEvent e)

treeNodesRemoved(TreeModelEvent e)

treeStructrueChanged(TreeModelEvent e)

TreeSelectionListener

valueChanged(TreeSelectionEvent e)

TreeWillExpandListener

treeWillCollapse(TreeExpansionEvent e)

treeWillExpand(TreeExpansionEvent e)

UndoableEventListener

undoableEditHappened(UndoableEditEVent e)

 

AWT EventListener

Method

ActionListener

actionPerformed(ActionEvent e)

AdjustmentListener

adjustmentValueChanged(AdjustmentEvent e)

ComponentListener

componentHidden(ComponentEvent e)

componentMoved(ComponentEvent e)

componentResized(ComponentEvent e)

componentShown(ComponentEvent e)

ContainerListener

componentAdded(ContainerEvent e)

componentRemoved(ContainerEvent e)

FocusListener

focusGained(FocusEvent e)

focusLost(FocusEvent e)

ItemListener

itemStateChanged(ItemEvent e)

KeyListener

keyPressed(KeyEvent e)

keyReleased(KeyEvent e)

keyTyped(KeyEvent e)

MouseListener

mouseClicked(MouseEvent e)

mouseEntered(MouseEvent e)

mouseExited(MouseEvent e)

mousePressed(MouseEvent e)

mouseReleased(MouseEvent e)

MouseMotionListener

mouseDragged(MouseEvent e)

mouseMoved(MouseEvent e)

WindowListener

windowActivated(WindowEvent e)

windowClosed(WindowEvent e)

windowClosing(WindowEvent e)

windowDeactivated(WindowEvent e)

windowDeiconified(WindowEvent e)

windowIconified(WindowEvent e)

windowOpened(WindowEvent e)

 

Adapter

EventLister

ComponentAdapter

ComponentListener

ContainterAdapter

ContainerListener

FocusAdapter

FocusListener

KeyAdapter

KeyListener

MouseAdapter

MouseListener

MouseMotionAdapter

MouseMotionListener

WindowAdapter

WindowListener

 类似资料: