I want to get a better understand of the following code:



exitItem.addActionListener(new ActionListener(){

public void actionPerformed(ActionEvent e){

System.exit(0);