hjh132's Blog
If a thing is worth doing it is worth doing well.
posts - 20,comments - 9,trackbacks - 0
 

接口

描述

ActionListener

定义了一个接收动作事件的方法

void actionPerformed(ActionEvent e)

AdjustmentListener

定义了一个接收调整事件的方法

void adjustmentValueChange(AdustmentEvent e)

ComponentListener

定义了四个方法来识别何时隐藏、移动、改变大小、显示组件

void componentHidden(ComponentEvent e)

void componentMoved(ComponentEvent e)

void componentResized(ComponentEvent e)

void componentShown(ComponentEvent e)

ContainerListener

定义两个方法来识别何时从容器中加入或除去组件

void componentAdded(ContainerEvent e)

void componentRemoved(ContainerEvent e)

FocusListener

定义两个方法来识别何时组件获得或失去焦点

void focusGained(FocusEvent e)

void focusLost(FocusEvent e)

ItemListener

定义一个方法来识别何时项目状态改变

void itemStateChange(ItemEvent e)

KeyListener

定义三个方法来识别何时键按下、释放和键入字符事件

void keyPressed(KeyEvent e)

void keyReleased(KeyEvent e)

void keyTyped(KeyEvent e)

MouseLitener

定义五个方法来识别何时鼠标单击、进入组件、离开组件、按下和释放事件

void mouseClicked(MouseEvent e)

void mouseEntered(MouseEvent e)

void mouseExited(MouseEvent e)

void mousePressed(MouseEvent e)

void mouseReleased(MouseEvnet e)

MouseMotionListener

定义两个方法来识别何时鼠标拖运和移动

void mouseDragged(MouseEvent e)

void mouseMoved(MouseEvent e)

TextListener

定义一个方法来识别何时文本值改变

void textValueChanged(TextEvent e)

WindowListener

定义七个方法来识别何时窗口激活、关闭、失效、最小化、还原、打开和退出

void windowActivated(WindowEvent e) //激活

void windowClosed(WindowEvent e) //关闭

void windowDeactivated(WindowEvent e) //失效

void windowDeiconified(WindowEvent e) //还原

void windowIconified(WindowEvent e) //最小化

void windowOpened(WindowEvent e) //打开

void windowClosing(WindowEvent e) // 退出

posted on 2008-01-19 01:34 101℃太阳 阅读(353) 评论(0)  编辑  收藏 所属分类: 图形界面

只有注册用户登录后才能发表评论。


网站导航: