EventListner 接口

它是一个标记接口,每一个监听器接口扩展。这个类定义在java.util包。

类声明

以下是声明java.util.EventListener接口:

public interface EventListener

Swing事件监听器接口:

以下是常用的的事件监听器列表。

Sr. No. Control & Description
1 ActionListener
该接口用于接收动作事件。
2 ComponentListener
该接口用于接收组件事件。
3 ItemListener
该接口用于接收项目事件。
4 KeyListener
该接口用于接收按键事件。
5 MouseListener
该接口用于接收鼠标事件。
6 WindowListener
该接口用于接收窗口事件。
7 AdjustmentListener
该接口用于接收调整事件。
8 ContainerListener
该接口用于接收容器事件。
9 MouseMotionListener
此接口用于接收鼠标移动事件。
10 FocusListener
该接口用于接收焦点事件。

 

Swing1

Swing2

http://www.52im.net/

http://www.oschina.net/uploads/doc/javase-6-doc-api-zh_CN/javax/swing/Action.html

http://www.doc88.com/p-475334186770.html

http://blog.csdn.net/crabime/article/details/54644764

https://wenku.baidu.com/view/3068410bf12d2af90242e699.html

http://www.cnblogs.com/guoyansi19900907/p/4529276.html

 

相关文章:

  • 2021-06-16
  • 2022-12-23
  • 2022-01-15
  • 2022-12-23
  • 2021-12-08
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-09-10
  • 2021-09-11
  • 2021-06-19
  • 2021-08-08
  • 2021-06-11
  • 2021-08-28
  • 2021-09-16
相关资源
相似解决方案