Please avoid writing a sentence in the Relevant Tags section ('I want to clear the doubt'). Edit your question and remove all words and put 'Java action-listener' to improve context and scope clarity 👍
As the event defined "action listener"
Which means if you click something on your jframe or any swing pallet it perform something.
It listen the action you perform.
A simple example: https://javapointers.com/javase/actionlistener/