I want to get a better understand of the following code:
exitItem.addActionListener(new ActionListener(){ public void actionPerformed(ActionEvent e){ System.exit(0); } });
I know that the method addActionListener has to have the parameters of an ActionListener which defines what to do when the action occurs.
The part which I dont understand is the parameter of the actionPerformed method, I can see that it accepts an ActionEvent object and is calling it "e", my question is what does it do with the object?