事件类型 | 相应∵接口 | ∵接口中的方法 |
Action | ActionListener | actionPerformed(ActionEvent) |
Item | ItemListener | itemStateChanged(ItemEvent) |
Mouse | MouseListener | mousePressed(MouseEvent)
mouseReleased(MouseEvent)
mouseEntered(MouseEvent)
mouseExited(MouseEvent)
mouseClicked(MouseEvent) |
Mouse Motion | MouseMotionListener | mouseDragged(MouseEvent)
mouseMoved(MouseEvent)
|
Key | KeyListener | keyPressed(KeyEvent)
keyReleased(KeyEvent)
keyTyped(KeyEvent)
|
Focus | FocusListener | focusGained(FocusEvent)
focusLost(FocusEvent)
|
Adjustment | AdjustmentListener | adjustmentValueChanged(AdjustmentEvent) |
Component | ComponentListener | componentMoved(ComponentEvent)
componentHidden (ComponentEvent)
componentResized(ComponentEvent)
componentShown(ComponentEvent) |
Window | WindowListener | windowClosing(WindowEvent)
windowOpened(WindowEvent)
windowIconified(WindowEvent)
windowDeiconified(WindowEvent)
windowClosed(WindowEvent)
windowActivated(WindowEvent)
windowDeactivated(WindowEvent)
|
Container | ContainerListener | componentAdded(ContainerEvent)
componentRemoved(ContainerEvent)
|
Text | TextListener | textValueChanged(TextEvent) |