

Once such user functions are done, an “action performed” message is sent to all respective action listeners defined in the relevant component.Java How to To have a program respond to a mouse click, you should a. For example, let us consider a simple scenario where the user selects a certain item from the menu bar or hits the enter key in a text field to go to a new line. As a programmer, it is your duty to define what an action listener can do for the user’s operation.
...

