Add menu listener method

This method adds menu ActionListener to all of the JMenuBar components
Each line adds listener to one component