Java ActionListener Interface
The Java ActionListener is informed at whatever point you click on the button or menu item. It is told against ActionEvent. The ActionListener interface is found in java.awt.event package. It has just a single strategy: actionPerformed().
The actionPerformed() method is invoked automatically whenever you click on the registered component.