Java 项目中添加监听器 2021年10月29日 / 实现接口:实现相应的接口 KeyListener MouseListener WindowListener ActionListener 重写:相应接口的方法 监听:事件源进行注册监听 原理:事件的传递是靠事件对象 详情:见代码库文件: KeyEvent.java ActionMouse.java