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℃太陽 閱讀(385) 評論(0)  編輯  收藏 所屬分類: 圖形界面

          只有注冊用戶登錄后才能發表評論。


          網站導航:
           
          主站蜘蛛池模板: 来宾市| 修文县| 连城县| 兴城市| 金寨县| 长兴县| 杨浦区| 新野县| 贵德县| 金门县| 甘孜县| 清涧县| 固阳县| 武川县| 宁晋县| 澳门| 临潭县| 连云港市| 鹤岗市| 车险| 广平县| 昂仁县| 巴南区| 蕲春县| 井陉县| 阳春市| 荆门市| 平罗县| 龙海市| 小金县| 青海省| 京山县| 石棉县| 吉林市| 台前县| 恩平市| 宣威市| 玉门市| 航空| 密山市| 彩票|