第 12 章 响应用户输入
12.1 事件监听器............................................ 208
12.1.1 设置组件........................................ 209
12.1.2 事件处理方法................................ 209
12.2 使用方法................................................ 211
12.2.1 行为事件........................................ 211
12.2.2 焦点事件........................................ 212
12.2.3 选项事件........................................ 214
12.2.4 键盘事件........................................ 216
12.2.5 鼠标事件........................................ 216
12.2.6 鼠标移动事件................................ 217
12.2.7 窗口事件 ........................................220
12.2.8 使用适配器类 ................................220
12.2.9 使用内部类 ....................................222
12.3 总结........................................................223
12.4 问与答....................................................223
12.5 小测验....................................................224
12.5.1 问题 ................................................224
12.5.2 答案 ................................................224
12.6 认证练习 ................................................224
12.7 练习........................................................225