事件类 监听者接口 监听者接口所提供的事件处理方法 (以 Event结尾) (以 Listener结尾) (以事件类为参数) Action Event Action Listener actionPerformed(Action Event e Adjustment event Adjustmentlistener adjustment Value ChangeAdjustment Event e) Item Event ItemListener itemState Change(ltemEvent e key Type (Key Event e) Keyevent Keylistener key Pressed(Key Event e) key Released( Keyevent e) mouse Clicked (MouseEvent e) mouse Entered Mouse Event e mouseExited(Mouse Event e) Mouse listener Mouse event mousePressed (Mouse Event e) Mouse motion listener mouseReleased (Mouse Event e) mouseDragged (Mouse Event e) mouse Moved Mouse Event e) TextEvent TextListener text Value Change(TextEvent e) windowActivated(window Event e) window Closed(window Event e) Window Event window Listener window Closing( window Event e) windowlconfied(window Event e) windowopened(window Event e)绪 论 Porgramming in Java 2008.3-2008.7 by Yanjun Zhang,Department of Computer HanDan Collage. 事件类 (以Event结尾) 监听者接口 (以Listener结尾) 监听者接口所提供的事件处理方法 (以事件类为参数) ActionEvent ActionListener actionPerformed(ActionEvent e) AdjustmentEvent AdjustmentListener adjustmentValueChange(AdjustmentEvent e) ItemEvent ItemListener itemStateChange(ItemEvent e ) KeyEvent KeyListener keyType(KeyEvent e) keyPressed(KeyEvent e) keyReleased(KeyEvent e) MouseEvent MouseListener MouseMotionListener mouseClicked(MouseEvent e) mouseEntered(MouseEvent e) mouseExited(MouseEvent e) mousePressed(MouseEvent e) mouseReleased(MouseEvent e) mouseDragged(MouseEvent e) mouseMoved(MouseEvent e) TextEvent TextListener textValueChange(TextEvent e ) WindowEvent windowListener windowActivated(WindowEvent e) windowClosed(WindowEvent e) windowClosing(WindowEvent e) windowIconfied(WindowEvent e) windowOpened(WindowEvent e)