How does an ActionListener work?

后端 未结 3 828
误落风尘
误落风尘 2021-01-04 14:02

I have an idea of how to use action listeners and implementing them but I was wondering if anyone could tell me how do they listen to the events? Is there some kind of poll

3条回答
  •  孤街浪徒
    2021-01-04 14:31

    There is an event loop that is implemented into core of AWT. It receives all events and sends them to appropriate listeners.

提交回复
热议问题