void actionPerformed(ActionEvent e) //Invoked when an action occurs. //action event generated on button clck invokes the actionPerformed //method in the anonymous inner class using the new ActionListener object we create.