描述信息接口名称方法(事件)单击按钮、单击菜单项、文本框按Enter键等动作ActionListeneractionPerformed(ActionEvent)选择了可选项的项目ItemListeneritemStateChanged(ItemEvent)文本部件内容改变TextListenertextValueChanged(TextEvent)移动了滚动条等部件AdjustmentListeneradjustmentValueChanged(AdjustmentEvent)鼠标移动MouseMotionListener java事件基础mouseDragged(MouseEvent)
mouseMoved(MouseEvent)
鼠标单击MouseListenermousePressed(MouseEvent)
mouseReleased(MouseEvent)
mouseEntered(MouseEvent)
mouseExited(MouseEvent)
mouseClicked(MouseEvent)
键盘输入KeyListenerkeyPressed(KeyEvent)
keyReleased(KeyEvent)
keyTyped(KeyEvent)
部件收到或失去焦点FocusListenerfocusGained(FocusEvent)
focusLost(FocusEvent)
部件移动、缩放、显示/隐藏ComponentListenercomponentMoved(ComponentEvent)
componentHidden(ComponentEvent)
componentResized(ComponentEvent)
componentShown(ComponentEvent)
窗口事件WindowListenerwindowClosing(WindowEvent)
windowOpened(WindowEvent)
windowIconified(WindowEvent)
windowDeiconified(WindowEvent)
windowClosed(WindowEvent)
windowActivated(WindowEvent)
windowDeactivated(WindowEvent)
容器增加/删除部件ContainerListenercontainerAdded(ContainerEvent)
版权声明:
本文来源网络,所有图片文章版权属于原作者,如有侵权,联系删除。
本文网址:https://www.bianchenghao6.com/h6javajc/2733.html