What is the difference between an ActionListener and an EventListener in Java?

user1212818 picture user1212818 · Dec 3, 2012 · Viewed 7.5k times · Source

What is the difference between an ActionListener and an EventListener, especially in the context of Java GUI development?

Answer

Platinum Azure picture Platinum Azure · Dec 3, 2012

The interface ActionListener is a subinterface of EventListener. In practice, it is probably better to implement the most specific interface you can, such as ActionListener or WindowListener.