常用AWT监听器接口,事件和事件源(摘自Java 2 核心技术<卷一:基础知识>(第七版)》)

常用AWT监听器接口,事件和事件源

接口 方法 参数/访问器方法 事件源
ActionListener actionPerformed

ActionEvent

.getActionCommand

.getModifiers

AbstractButton

JComboBox

JTextField

Timer

AdjustmentListener adjustmentValueChanged

AdjustmentEvent

.getAdjustable

.getAdjustmentType

.getValue

JScrollbar
ItemListener itemStateChanged

ItemEvent

.getItem

.getItemSelectable

AbstractButton

JComboBox

FocusListener

focusGained

focusLost

FocusEvent

.isTemporary

Component
KeyListener

keyPressed

keyReleased

keyTyped

KeyEvent

.getKeyChar

.getKeyCode

.getKeyModifiersText

.getKeyText

.isActionKey

Component
MouseListener

mousePressed

mouseReleased

mouseEntered

MouseEvent

.getClickCount

.getX

Component

continue:





阅读更多
文章标签: java
个人分类: 笔记
想对作者说点什么? 我来说一句

没有更多推荐了,返回首页

关闭
关闭
关闭